diff --git a/src/app/(dashboard)/dashboard/accounts/add/page.tsx b/src/app/(dashboard)/dashboard/accounts/add/page.tsx new file mode 100644 index 0000000..66bb764 --- /dev/null +++ b/src/app/(dashboard)/dashboard/accounts/add/page.tsx @@ -0,0 +1,26 @@ +import AddAccountForm from "@/components/add-account-form"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; +import { Separator } from "@/components/ui/separator"; + +export default function SettingsDisplayPage() { + return ( + +
+ + + + Create Account + + + + + + + + +
+ +
+ ); +} diff --git a/src/components/accounts-table/tools-table.tsx b/src/components/accounts-table/tools-table.tsx index 80eaaa6..31de73e 100644 --- a/src/components/accounts-table/tools-table.tsx +++ b/src/components/accounts-table/tools-table.tsx @@ -21,7 +21,7 @@ const ToolsTable = ({ accounts }: { accounts: Account[] }) => { description="Manage Accounts" /> ; + +// This can come from your database or API. +const defaultValues: Partial = { + balance: "", + email: "", + organization: "", +}; + +export default function AddAccountForm() { + const form = useForm({ + resolver: zodResolver(displayFormSchema), + defaultValues, + }); + + function onSubmit(data: DisplayFormValues) { + toast({ + title: "You submitted the following values:", + description: ( +
+          {JSON.stringify(data, null, 2)}
+        
+ ), + }); + } + + return ( +
+ + ( + + User + + + + )} + /> + + ( + + Balance + + + + + + )} + /> + + ( + + User + + + + )} + /> + +
+ + +
+ + + ); +}