fix: keep dashboard CSS out of board settings (#7066)
Related to #7062. Keep dashboard custom CSS out of dashboard settings.
This commit is contained in:
1 parent
fb435eff41
commit
ff22c577ac
2 files changed
+4
-1
No files matched your search
@@ -5,6 +5,7 @@ import { createBoardLayout } from "../_layout-creator";
|
|||||||
|
|
||||||
export default createBoardLayout<{ locale: string; name: string }>({
|
export default createBoardLayout<{ locale: string; name: string }>({
|
||||||
headerActions: <BoardOtherHeaderActions />,
|
headerActions: <BoardOtherHeaderActions />,
|
||||||
|
withCustomCss: false,
|
||||||
async getInitialBoardAsync({ name }) {
|
async getInitialBoardAsync({ name }) {
|
||||||
return await getBoardByNameAsync(name);
|
return await getBoardByNameAsync(name);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ interface CreateBoardLayoutProps<TParams extends Params> {
|
|||||||
headerBoardSettingsAction?: JSX.Element;
|
headerBoardSettingsAction?: JSX.Element;
|
||||||
getInitialBoardAsync: (params: TParams) => Promise<Board>;
|
getInitialBoardAsync: (params: TParams) => Promise<Board>;
|
||||||
withTour?: boolean;
|
withTour?: boolean;
|
||||||
|
withCustomCss?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createBoardLayout = <TParams extends Params>({
|
export const createBoardLayout = <TParams extends Params>({
|
||||||
@@ -42,6 +43,7 @@ export const createBoardLayout = <TParams extends Params>({
|
|||||||
headerBoardSettingsAction,
|
headerBoardSettingsAction,
|
||||||
getInitialBoardAsync: getInitialBoard,
|
getInitialBoardAsync: getInitialBoard,
|
||||||
withTour = false,
|
withTour = false,
|
||||||
|
withCustomCss = true,
|
||||||
}: CreateBoardLayoutProps<TParams>) => {
|
}: CreateBoardLayoutProps<TParams>) => {
|
||||||
const Layout = async ({
|
const Layout = async ({
|
||||||
params,
|
params,
|
||||||
@@ -107,7 +109,7 @@ export const createBoardLayout = <TParams extends Params>({
|
|||||||
<BoardReadyProvider>
|
<BoardReadyProvider>
|
||||||
<BoardMantineProvider defaultColorScheme={colorScheme}>
|
<BoardMantineProvider defaultColorScheme={colorScheme}>
|
||||||
<ModalProvider>
|
<ModalProvider>
|
||||||
<CustomCss />
|
{withCustomCss && <CustomCss />}
|
||||||
<BoardTourGate enabled={shouldRunBoardTour}>
|
<BoardTourGate enabled={shouldRunBoardTour}>
|
||||||
<ClientShell hasNavigation={false}>
|
<ClientShell hasNavigation={false}>
|
||||||
<MainHeader
|
<MainHeader
|
||||||
|
|||||||
Reference in new issue
Block a user