This commit is contained in:
Damien Ostler 2024-02-15 22:18:20 -05:00
parent 6c2acada86
commit 13bd42ecbd
4 changed files with 29 additions and 43 deletions

View File

@ -1,9 +0,0 @@
export type User = {
email: string;
email_verified: boolean;
name: string;
nickname: string;
picture: string;
sub: string;
updated_at: string;
};

View File

@ -3,7 +3,6 @@ import { useTheme } from '@mui/material/styles';
import AppBar from '@mui/material/AppBar';
import Tabs from '@mui/material/Tabs';
import Tab from '@mui/material/Tab';
import Layout from "../components/layout";
import { Grid, Button, Typography, TextField, Box, CircularProgress, IconButton } from "@mui/material";
import { useState, useEffect,useRef } from "react";
import Card from '@mui/material/Card';
@ -170,36 +169,33 @@ const SellerDashoard = (ctx) => {
<CircularProgress />
</Box>
) : (
<Layout user={user} loading={isLoading}>
<Grid container >
{(Object.keys(sellerData).length > 0 ? (
<>
<Grid item container sx={{ textAlign: "center" }}>
<Grid item xs={12} sm={2} sx={{ textAlign: "center" }}>
<Button color="primary" variant="contained" href="../">
Back
</Button>
</Grid>
<Grid item xs={12} sm={8} sx={{ textAlign: "center" }}>
<Typography variant="h4">
Artist Dashboard
</Typography>
</Grid>
<Grid item xs={12} sm={2} sx={{ textAlign: "center" }}>
</Grid>
<Grid container >
{(Object.keys(sellerData).length > 0 ? (
<>
<Grid item container sx={{ textAlign: "center" }}>
<Grid item xs={12} sm={2} sx={{ textAlign: "center" }}>
<Button color="primary" variant="contained" href="../">
Back
</Button>
</Grid>
<ArtistDashboardRequest/>
</>
<Grid item xs={12} sm={8} sx={{ textAlign: "center" }}>
<Typography variant="h4">
Artist Dashboard
</Typography>
</Grid>
<Grid item xs={12} sm={2} sx={{ textAlign: "center" }}>
</Grid>
</Grid>
<ArtistDashboardRequest/>
</>
) : (
<></>
))}
<Grid item container xs={12} sm={12}>
</Grid>
) : (
<></>
))}
<Grid item container xs={12} sm={12}>
</Grid>
</Layout>)}
</>
);
};
</Grid>
)};
</>);
}
export default SellerDashoard;

0
pages/dashboard.tsx Normal file
View File

View File

@ -1,5 +1,4 @@
import { withPageAuthRequired } from "@auth0/nextjs-auth0/client";
import Layout from "../components/layout";
import { User } from "../interfaces";
type ProfileCardProps = {
@ -23,9 +22,9 @@ const ProfileCard = ({ user }: ProfileCardProps) => {
const Profile = ({ user, isLoading }) => {
return (
<Layout user={user} loading={isLoading}>
{isLoading ? <>Loading</> : <ProfileCard user={user} />}
</Layout>
<>
{isLoading ? <>Loading</> : <ProfileCard user={user} />}
</>
);
};