@@ -4,6 +4,7 @@ import { ClipboardButton, getTTLInHumanReadableFormat } from '@Common/index'
4
4
import { ReactComponent as ICChatSupport } from '@IconsV2/ic-chat-circle-dots.svg'
5
5
import { getThemeOppositeThemeClass } from '@Shared/Providers/ThemeProvider/utils'
6
6
import {
7
+ AppThemeType ,
7
8
CONTACT_SUPPORT_LINK ,
8
9
DevtronLicenseCardProps ,
9
10
ENTERPRISE_SUPPORT_LINK ,
@@ -32,6 +33,7 @@ export const DevtronLicenseCard = ({
32
33
const remainingTime = getTTLInHumanReadableFormat ( ttl )
33
34
const remainingTimeString = ttl < 0 ? `Expired ${ remainingTime } ago` : `${ remainingTime } remaining`
34
35
const isLicenseValid = licenseStatus !== LicenseStatus . EXPIRED
36
+ const isThemeDark = appTheme === AppThemeType . dark
35
37
36
38
const cardRef = useRef < HTMLDivElement > ( null )
37
39
@@ -70,12 +72,10 @@ export const DevtronLicenseCard = ({
70
72
)
71
73
const sheenPosition = useTransform ( diagonalMovement , [ - 5 , 5 ] , [ - 100 , 200 ] )
72
74
73
- const sheenOpacity = useTransform ( sheenPosition , [ - 100 , 50 , 200 ] , [ 0 , 0.05 , 0 ] )
74
- const sheenGradient = useMotionTemplate `linear-gradient(
75
- 55deg,
76
- transparent,
77
- rgba(255 255 255 / ${ sheenOpacity } ) ${ sheenPosition } %,
78
- transparent)`
75
+ const sheenOpacity = useTransform ( sheenPosition , [ - 100 , 50 , 200 ] , [ 0 , isThemeDark ? 0.25 : 0.1 , 0 ] )
76
+ const sheenGradient = isThemeDark
77
+ ? useMotionTemplate `linear-gradient(55deg, transparent, rgba(122, 127, 131, ${ sheenOpacity } ) ${ sheenPosition } %, transparent)`
78
+ : useMotionTemplate `linear-gradient(55deg, transparent, rgba(255, 255, 255, ${ sheenOpacity } ) ${ sheenPosition } %, transparent)`
79
79
80
80
return (
81
81
< div className = "flexbox-col p-8 br-16" style = { { backgroundColor : bgColor } } >
@@ -107,7 +107,7 @@ export const DevtronLicenseCard = ({
107
107
</ div >
108
108
{ licenseKey && < ClipboardButton content = { licenseKey } onClick = { onCopyButtonClick } /> }
109
109
</ div >
110
- < div className = "flexbox dc__align-items-center dc__gap-4 flex-wrap" >
110
+ < div className = "flexbox dc__align-items-center dc__gap-4 flex-wrap fs-12 " >
111
111
< span className = "font-ibm-plex-mono cn-9" > { expiryDate } </ span >
112
112
< span className = "cn-9" > ·</ span >
113
113
< span style = { { color : textColor } } > { remainingTimeString } </ span >
0 commit comments