fix: wrap page in Authenticated component

This commit is contained in:
Derrick Hammer 2024-03-19 11:10:02 -04:00
parent 847f7537a3
commit 8770e24639
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,7 @@
import { getFormProps, useForm } from "@conform-to/react";
import { getZodConstraint, parseWithZod } from "@conform-to/zod";
import {
Authenticated,
BaseKey,
useGetIdentity,
useUpdate,
@ -41,6 +42,7 @@ export default function MyAccount() {
});
return (
<Authenticated key="account" v3LegacyAuthProviderCompatible>
<GeneralLayout>
<h1 className="text-lg font-bold mb-4">My Account</h1>
<UsageCard
@ -179,6 +181,7 @@ export default function MyAccount() {
}
/>
</GeneralLayout>
</Authenticated>
);
}