feat: init collections index + delete

This commit is contained in:
swve 2022-09-24 20:06:05 +02:00
parent c5bb590b2d
commit 924656ce13
14 changed files with 167 additions and 22 deletions

View file

@ -28,7 +28,7 @@ const AuthProvider = (props: any) => {
userInfo = await getUserInfo(access_token);
isAuthenticated = true;
setAuth({ access_token, isAuthenticated, userInfo, isLoading });
} else if (!access_token) {
} else{
isAuthenticated = false;
setAuth({ access_token, isAuthenticated, userInfo, isLoading });
}

View file

@ -8,19 +8,8 @@ export const Header = () => {
return (
<div>
<Menu></Menu>
<PreAlphaLabel>🚧 Pre-Alpha</PreAlphaLabel>
</div>
);
};
const PreAlphaLabel = styled.div`
position: fixed;
bottom: 0;
right: 0;
padding: 9px;
background-color: #080501;
color: white;
font-size: 19px;
font-weight: bold;
border-radius: 5px 0 0 0px;
`;

View file

@ -13,7 +13,7 @@ const Layout = (props: any) => {
<meta name="description" content={props.description} />
<link rel="icon" href="/favicon.ico" />
</Head>
<Header></Header>
<PreAlphaLabel>🚧 Pre-Alpha</PreAlphaLabel>
<Main className="min-h-screen">{props.children}</Main>
<Footer>
@ -43,4 +43,16 @@ const Footer = styled.footer`
}
`;
const PreAlphaLabel = styled.div`
position: fixed;
bottom: 0;
right: 0;
padding: 9px;
background-color: #080501;
color: white;
font-size: 19px;
font-weight: bold;
border-radius: 5px 0 0 0px;
`;
export default Layout;