Skip to content

Commit

Permalink
overhauled import token modal to support default token lists
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 committed Dec 10, 2024
1 parent d9bf747 commit 7865797
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 170 deletions.
5 changes: 3 additions & 2 deletions src/components/helpers/FilledRoundCheckBox.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Box } from '@0xsequence/design-system'
import { Box, BoxProps } from '@0xsequence/design-system'

import CheckmarkBlack from '~/assets/icons/checkmark-black.svg'
import EmptyRoundCheckBox from '~/assets/icons/round-checkbox.svg'

export const ROUND_CHECKBOX_SIZE = 8

export function FilledRoundCheckBox({ checked }: { checked: boolean }) {
export function FilledRoundCheckBox({ checked, ...rest }: { checked: boolean } & BoxProps) {
return (
<Box
width={`${ROUND_CHECKBOX_SIZE}`}
Expand All @@ -14,6 +14,7 @@ export function FilledRoundCheckBox({ checked }: { checked: boolean }) {
alignItems="center"
background={checked ? 'white' : 'transparent'}
borderRadius="circle"
{...rest}
>
{checked ? (
<img src={CheckmarkBlack} alt="Checkmark" style={{ width: '24px', height: '24px' }} />
Expand Down
Loading

0 comments on commit 7865797

Please sign in to comment.