diff --git a/interfaces/index.ts b/interfaces/index.ts deleted file mode 100644 index 558c056..0000000 --- a/interfaces/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export type User = { - email: string; - email_verified: boolean; - name: string; - nickname: string; - picture: string; - sub: string; - updated_at: string; -}; diff --git a/pages/artistDashboard.tsx b/pages/artistDashboard.tsx index ccbb6be..79106e2 100644 --- a/pages/artistDashboard.tsx +++ b/pages/artistDashboard.tsx @@ -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) => { ) : ( - - - {(Object.keys(sellerData).length > 0 ? ( - <> - - - - - - - Artist Dashboard - - - - + + {(Object.keys(sellerData).length > 0 ? ( + <> + + + - - + + + Artist Dashboard + + + + + + + - ) : ( - <> - ))} - - + ) : ( + <> + ))} + - )} - - ); -}; - + + )}; +); +} export default SellerDashoard; diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx new file mode 100644 index 0000000..e69de29 diff --git a/pages/profile.tsx b/pages/profile.tsx index 5d81696..2dcc54f 100644 --- a/pages/profile.tsx +++ b/pages/profile.tsx @@ -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 ( - - {isLoading ? <>Loading : } - + <> + {isLoading ? <>Loading : } + ); };