Skip to content

Commit

Permalink
fix: badge colour
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Nov 13, 2023
1 parent 0a1dca6 commit bd7fa18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/dashboard/Recovery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import type { ReactElement } from 'react'

import RecoveryLogo from '@/public/images/common/recovery.svg'
import { WidgetBody, WidgetContainer } from '@/components/dashboard/styled'
import { useDarkMode } from '@/hooks/useDarkMode'

import css from './styles.module.css'

export function Recovery(): ReactElement {
const isDarkMode = useDarkMode()

const onClick = () => {
// TODO: Open enable recovery flow
}
Expand All @@ -28,7 +31,7 @@ export function Recovery(): ReactElement {
<Typography variant="h4" className={css.title}>
Introducing account recovery{' '}
</Typography>
<Chip label="New" color="primary" size="small" className={css.chip} />
<Chip label="New" color={isDarkMode ? 'primary' : 'secondary'} size="small" className={css.chip} />
</Box>
<Typography mt={1} mb={3}>
Ensure that you never lose access to your funds by choosing a guardian to recover your account.
Expand Down

0 comments on commit bd7fa18

Please sign in to comment.