mirror of
https://codeberg.org/MarkusThielker/finances.git
synced 2025-07-04 03:59:18 +00:00
N-FIN-12: add button to generate sample data
This commit is contained in:
parent
95f36977da
commit
b8a7a5d6f4
3 changed files with 223 additions and 1 deletions
|
@ -7,6 +7,8 @@ import { Label } from '@/components/ui/label';
|
|||
import { Input } from '@/components/ui/input';
|
||||
import SignOutForm from '@/components/form/signOutForm';
|
||||
import { URL_SIGN_IN } from '@/lib/constants';
|
||||
import GenerateSampleDataForm from '@/components/form/generateSampleDataForm';
|
||||
import generateSampleData from '@/lib/actions/generateSampleData';
|
||||
|
||||
export default async function AccountPage() {
|
||||
|
||||
|
@ -37,7 +39,12 @@ export default async function AccountPage() {
|
|||
value={user?.username}/>
|
||||
</div>
|
||||
</CardContent>
|
||||
<CardFooter>
|
||||
<CardFooter className="space-x-4">
|
||||
{
|
||||
process.env.NODE_ENV === 'development' && (
|
||||
<GenerateSampleDataForm onSubmit={generateSampleData}/>
|
||||
)
|
||||
}
|
||||
<SignOutForm onSubmit={signOut}/>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue