Skip to content

Commit 5c3b1b4

Browse files
lucas-paulger-sonarsourcesonartech
authored andcommitted
SC-34287 Fix architecture page layout (#3527)
GitOrigin-RevId: 2040fbb000beddfa6f21f43c87a18855cd05e7f9
1 parent 5befbcb commit 5c3b1b4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

libs/shared/src/context/fullWindowContext.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,15 @@ import { createContext, PropsWithChildren, useContext, useMemo, useState } from
2424
const FullWindowContext = createContext<{
2525
fullWindow: boolean;
2626
setFullWindow: (fullWindow: boolean) => void;
27-
setUseGutters: (useGutters: boolean) => void;
28-
useGutters: boolean;
2927
}>({
3028
fullWindow: false,
3129
setFullWindow: noop,
32-
useGutters: true,
33-
setUseGutters: noop,
3430
});
3531

3632
export function FullWindowProvider({ children }: Readonly<PropsWithChildren>) {
3733
const [fullWindow, setFullWindow] = useState(false);
38-
const [useGutters, setUseGutters] = useState(true);
3934

40-
const context = useMemo(
41-
() => ({ fullWindow, setFullWindow, setUseGutters, useGutters }),
42-
[fullWindow, setFullWindow, setUseGutters, useGutters],
43-
);
35+
const context = useMemo(() => ({ fullWindow, setFullWindow }), [fullWindow, setFullWindow]);
4436

4537
return <FullWindowContext.Provider value={context}>{children}</FullWindowContext.Provider>;
4638
}

0 commit comments

Comments
 (0)