@@ -2,14 +2,14 @@ import { useEffect, useRef } from 'react'
2
2
import { animate , motion , useMotionTemplate , useMotionValue , useTransform } from 'framer-motion'
3
3
import { ClipboardButton , getTTLInHumanReadableFormat } from '@Common/index'
4
4
import { ReactComponent as ICChatSupport } from '@IconsV2/ic-chat-circle-dots.svg'
5
+ import { getThemeOppositeThemeClass } from '@Shared/Providers/ThemeProvider/utils'
5
6
import {
6
- AppThemeType ,
7
7
CONTACT_SUPPORT_LINK ,
8
8
DevtronLicenseCardProps ,
9
9
ENTERPRISE_SUPPORT_LINK ,
10
- getComponentSpecificThemeClass ,
11
10
getHandleOpenURL ,
12
11
LicenseStatus ,
12
+ useTheme ,
13
13
} from '@Shared/index'
14
14
import { Button , ButtonVariantType } from '../Button'
15
15
import { Icon } from '../Icon'
@@ -28,6 +28,7 @@ export const DevtronLicenseCard = ({
28
28
ttl,
29
29
} : DevtronLicenseCardProps ) => {
30
30
const { bgColor, textColor } = getLicenseColorsAccordingToStatus ( licenseStatus )
31
+ const { appTheme } = useTheme ( )
31
32
const remainingTime = getTTLInHumanReadableFormat ( ttl )
32
33
const remainingTimeString = ttl < 0 ? `Expired ${ remainingTime } ago` : `${ remainingTime } remaining`
33
34
const isLicenseValid = licenseStatus !== LicenseStatus . EXPIRED
@@ -80,7 +81,7 @@ export const DevtronLicenseCard = ({
80
81
< div className = "flexbox-col p-8 br-16" style = { { backgroundColor : bgColor } } >
81
82
< div style = { { perspective : '1000px' } } >
82
83
< motion . div
83
- className = { `license-card border__secondary flexbox-col br-12 h-200 dc__overflow-hidden bg__tertiary ${ getComponentSpecificThemeClass ( AppThemeType . dark ) } ` }
84
+ className = { `license-card shadow__overlay border__secondary flexbox-col br-12 h-200 dc__overflow-hidden bg__tertiary ${ getThemeOppositeThemeClass ( appTheme ) } ` }
84
85
ref = { cardRef }
85
86
style = { {
86
87
rotateX,
@@ -100,7 +101,7 @@ export const DevtronLicenseCard = ({
100
101
< div className = "flexbox-col dc__gap-4" >
101
102
< div className = "flexbox dc__align-items-center dc__gap-6" >
102
103
< Icon name = "ic-key" color = { null } size = { 16 } />
103
- < div className = "flex dc__gap-4 cn-7 fs-16 fw-5 lh-1-5 font-ibm-plex-mono" >
104
+ < div className = "flex dc__gap-4 cn-7 fs-16 fw-5 lh-1-5 cn-9 font-ibm-plex-mono" >
104
105
< span > ••••</ span >
105
106
< span > { licenseSuffix || licenseKey ?. slice ( - 8 ) } </ span >
106
107
</ div >
0 commit comments