Skip to content

Commit

Permalink
refactor: remove old checkbox (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKheops authored Jul 10, 2023
1 parent 322d05d commit accd198
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 84 deletions.
70 changes: 0 additions & 70 deletions apps/extension/src/@talisman/components/Field/Checkbox.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions apps/extension/src/@talisman/components/Field/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AccountJsonAny } from "@core/domains/accounts/types"
import Field from "@talisman/components/Field"
import { shortenAddress } from "@talisman/util/shortenAddress"
import { classNames } from "@talismn/util"
import { FC } from "react"
Expand Down Expand Up @@ -31,7 +30,12 @@ export const ConnectAccountToggleButton: FC<{
<AccountTypeIcon origin={account.origin} className="text-primary-500" />
</div>
</div>
<Field.Checkbox value={value} small />
<div
className={classNames(
"h-4 w-4 shrink-0 rounded-full",
value ? "bg-primary" : "bg-grey-700"
)}
></div>
</button>
)
}

0 comments on commit accd198

Please sign in to comment.