moving to elements
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user