moving to elements

This commit is contained in:
Elijah Lucian
2021-07-13 17:51:30 -06:00
parent 2b94223389
commit 49a3fa1d5f
5 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ import { message } from 'antd'
import { useUserContext } from '../../contexts/UserContext'
import './style.scss'
import { Button } from '../../elements/Button'
type Props = {
selectProfile: (id: string) => void
@@ -22,12 +23,12 @@ export const AccountSelect = ({ selectProfile }: Props) => {
<div className="account-select">
{accounts?.length
? accounts.map((account) => (
<button
<Button
key={`account-${account.name}`}
onClick={() => handleSelect(account.id)}
>
{account.name}
</button>
</Button>
))
: ''}
<Link to="/account/new">Create New Budget!</Link>