Skip to content

Commit 97bd926

Browse files
committed
Minor design fix
1 parent 6200ef4 commit 97bd926

File tree

1 file changed

+6
-0
lines changed
  • apps/extension/src/pages/main/components/rewards-card

1 file changed

+6
-0
lines changed

apps/extension/src/pages/main/components/rewards-card/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
>

0 commit comments

Comments
 (0)