refactor(userprofile): changes to have the table be blank and say nothing subscribed
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m32s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m32s
later we will leave this off the profile and add it once at least one notification is subscribed
This commit is contained in:
@@ -60,68 +60,68 @@ function RouteComponent() {
|
|||||||
<div className="flex justify-center flex-col pt-4 gap-2">
|
<div className="flex justify-center flex-col pt-4 gap-2">
|
||||||
<div className="flex justify-center flex-col pt-4 gap-2 lg:flex-row">
|
<div className="flex justify-center flex-col pt-4 gap-2 lg:flex-row">
|
||||||
<div>
|
<div>
|
||||||
<Card className="p-6 w-96">
|
<Card className="p-6 w-96">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Profile</CardTitle>
|
<CardTitle>Profile</CardTitle>
|
||||||
<CardDescription>
|
<CardDescription>
|
||||||
Change your profile and password below
|
Change your profile and password below
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<form
|
<form
|
||||||
onSubmit={(e) => {
|
onSubmit={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
form.handleSubmit();
|
form.handleSubmit();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<form.AppField name="name">
|
<form.AppField name="name">
|
||||||
{(field) => (
|
{(field) => (
|
||||||
<field.InputField
|
<field.InputField
|
||||||
label="Name"
|
label="Name"
|
||||||
inputType="string"
|
inputType="string"
|
||||||
required={true}
|
required={true}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</form.AppField>
|
</form.AppField>
|
||||||
|
|
||||||
<div className="flex justify-end mt-6">
|
<div className="flex justify-end mt-6">
|
||||||
<form.AppForm>
|
<form.AppForm>
|
||||||
<form.SubmitButton>Update Profile</form.SubmitButton>
|
<form.SubmitButton>Update Profile</form.SubmitButton>
|
||||||
</form.AppForm>
|
</form.AppForm>
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<ChangePassword />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<Suspense
|
|
||||||
fallback={
|
|
||||||
<Card className="p-3 w-lg">
|
|
||||||
<CardHeader>
|
|
||||||
<CardTitle>Notifications</CardTitle>
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent>
|
|
||||||
<div className="flex justify-center m-auto">
|
|
||||||
<div>
|
|
||||||
<Spinner className="size-32" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</form>
|
||||||
</Card>
|
</CardContent>
|
||||||
}
|
</Card>
|
||||||
>
|
</div>
|
||||||
{session && <NotificationsSubCard user={session.user} />}
|
<div>
|
||||||
</Suspense>
|
<ChangePassword />
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<Suspense
|
||||||
|
fallback={
|
||||||
|
<Card className="p-3 w-lg">
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Notifications</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div className="flex justify-center m-auto">
|
||||||
|
<div>
|
||||||
|
<Spinner className="size-32" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{session && <NotificationsSubCard user={session.user} />}
|
||||||
|
</Suspense>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-fill">
|
<div className="w-fill">
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader className="text-center">
|
<CardHeader className="text-center">
|
||||||
This is where the user's current notification subs will be.
|
You are not subscribed to any notifications.
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ function Index() {
|
|||||||
<p>
|
<p>
|
||||||
This is active in your plant today due to having warehousing activated
|
This is active in your plant today due to having warehousing activated
|
||||||
and new functions needed to be introduced, you should be still using LST
|
and new functions needed to be introduced, you should be still using LST
|
||||||
as you were before
|
as you were before.
|
||||||
</p>
|
</p>
|
||||||
<br></br>
|
<br></br>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Reference in New Issue
Block a user