File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
apps/extension/src/pages/main/components/rewards-card Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,8 @@ const ClaimAllButton: FunctionComponent<ClaimAllButtonProps> = ({
228228 isHover,
229229 setIsHover,
230230} ) => {
231+ const theme = useTheme ( ) ;
232+
231233 const [ isPressed , setIsPressed ] = React . useState ( false ) ;
232234 const [ labelWidth , setLabelWidth ] = React . useState < number > ( ) ;
233235 const claimTextRef = React . useRef < HTMLSpanElement | null > ( null ) ;
@@ -315,6 +317,8 @@ const ClaimAllButton: FunctionComponent<ClaimAllButtonProps> = ({
315317 color = {
316318 claimAllDisabled
317319 ? ColorPalette [ "gray-300" ]
320+ : theme . mode === "light"
321+ ? ColorPalette [ "blue-400" ]
318322 : ColorPalette [ "blue-300" ]
319323 }
320324 />
@@ -325,6 +329,8 @@ const ClaimAllButton: FunctionComponent<ClaimAllButtonProps> = ({
325329 color = {
326330 claimAllDisabled
327331 ? ColorPalette [ "gray-300" ]
332+ : theme . mode === "light"
333+ ? ColorPalette [ "blue-400" ]
328334 : ColorPalette [ "blue-300" ]
329335 }
330336 >
You can’t perform that action at this time.
0 commit comments