Add slug board page

This commit is contained in:
Meier Lukas
2023-07-30 20:17:35 +02:00
parent 96529ae6bc
commit 5008b5e7a4
8 changed files with 75 additions and 27 deletions

View File

@@ -55,7 +55,7 @@ export const getServerSideProps: GetServerSideProps<BoardGetServerSideProps> = a
ctx.res
);
const boardName = currentUserSettings?.defaultBoard ?? 'default';
const config = await getFrontendConfig(boardName as string);
const config = await getFrontendConfig(boardName);
return {
props: {
@@ -65,7 +65,7 @@ export const getServerSideProps: GetServerSideProps<BoardGetServerSideProps> = a
};
};
const HeaderActions = () => {
export const HeaderActions = () => {
const { data: sessionData } = useSession();
if (!sessionData?.user?.isAdmin) return null;