mirror of
https://github.com/D4M13N-D3V/comissions-app-ui.git
synced 2025-03-14 00:05:07 +00:00
save
This commit is contained in:
parent
6c2acada86
commit
13bd42ecbd
@ -1,9 +0,0 @@
|
||||
export type User = {
|
||||
email: string;
|
||||
email_verified: boolean;
|
||||
name: string;
|
||||
nickname: string;
|
||||
picture: string;
|
||||
sub: string;
|
||||
updated_at: string;
|
||||
};
|
@ -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
0
pages/dashboard.tsx
Normal 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} />}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user