fix: wrap page in Authenticated component
This commit is contained in:
parent
847f7537a3
commit
8770e24639
|
@ -1,6 +1,7 @@
|
||||||
import { getFormProps, useForm } from "@conform-to/react";
|
import { getFormProps, useForm } from "@conform-to/react";
|
||||||
import { getZodConstraint, parseWithZod } from "@conform-to/zod";
|
import { getZodConstraint, parseWithZod } from "@conform-to/zod";
|
||||||
import {
|
import {
|
||||||
|
Authenticated,
|
||||||
BaseKey,
|
BaseKey,
|
||||||
useGetIdentity,
|
useGetIdentity,
|
||||||
useUpdate,
|
useUpdate,
|
||||||
|
@ -41,6 +42,7 @@ export default function MyAccount() {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Authenticated key="account" v3LegacyAuthProviderCompatible>
|
||||||
<GeneralLayout>
|
<GeneralLayout>
|
||||||
<h1 className="text-lg font-bold mb-4">My Account</h1>
|
<h1 className="text-lg font-bold mb-4">My Account</h1>
|
||||||
<UsageCard
|
<UsageCard
|
||||||
|
@ -179,6 +181,7 @@ export default function MyAccount() {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</GeneralLayout>
|
</GeneralLayout>
|
||||||
|
</Authenticated>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue