N-FIN-48: fix sign out button layout (#50)

Fixes #48
This commit is contained in:
Markus Thielker 2024-03-17 12:01:56 +01:00 committed by GitHub
commit 50b8ba399d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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>