N-FIN-48: fix sign out button layout

This commit is contained in:
Markus Thielker 2024-03-17 12:01:29 +01:00
parent 74bb618706
commit 47c094ba72
No known key found for this signature in database

View file

@ -81,14 +81,18 @@ export default async function AccountPage() {
</div>
</div>
</CardContent>
<CardFooter className="grid gap-4 grid-cols-1 md:grid-cols-2">
{
process.env.NODE_ENV === 'development' && (
{
process.env.NODE_ENV === 'development' ? (
<CardFooter className="grid gap-4 grid-cols-1 md:grid-cols-2">
<GenerateSampleDataForm onSubmit={generateSampleData}/>
)
}
<SignOutForm onSubmit={signOut}/>
</CardFooter>
<SignOutForm onSubmit={signOut}/>
</CardFooter>
) : (
<CardFooter>
<SignOutForm onSubmit={signOut}/>
</CardFooter>
)
}
</Card>
<div className="flex w-full items-center justify-between max-w-md mt-2 text-neutral-600">
<p>Version {process.env.appVersion}</p>