Skip to content

Commit

Permalink
update home
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-maker authored Jun 26, 2024
1 parent cd7fc17 commit 977eb31
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/(dashboard)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
'use client';

import { useGetAccounts } from '@/features/accounts/api/use-get-accounts';
import React from 'react';
import { Button } from '@/components/ui/button';
import { useNewAccount } from '@/features/accounts/hooks/use-new-account';

export default function Home() {
const accountsQuery = useGetAccounts();
const {onOpen} = useNewAccount();

return (
<div>{accountsQuery.data?.map((account) => <div key={account.id}>{account.name}</div>)}</div>
<div>
<Button onClick={onOpen}>Add an account</Button>
</div>
);
}

0 comments on commit 977eb31

Please sign in to comment.