Skip to content

Commit 5702fa7

Browse files
committed
Fjern ubrukt fullscreen
1 parent 3ad1dd7 commit 5702fa7

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

bun.lockb

424 Bytes
Binary file not shown.

packages/internarbeidsflate-decorator-v3/src/components/Banner.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ import Markup from './Markup';
77
import MenuButton from './MenuButton';
88
import SearchArea from './SearchArea';
99
import VeilederDetails from './VeilederDetails';
10-
import { useAppState } from '../states/AppState';
1110

1211
const Banner: React.FC = () => {
13-
const isFullScreen = useAppState((state) => state.isFullScreen);
14-
1512
return (
1613
<div className="dr-p-2 dr-bg-background dr-text-white">
1714
<div className="dr-max-w-full dr-mx-auto">
@@ -25,7 +22,7 @@ const Banner: React.FC = () => {
2522
<HotkeyMenuElement />
2623
<VeilederDetails />
2724
</div>
28-
{!isFullScreen && <MenuButton />}
25+
<MenuButton />
2926
</div>
3027
</div>
3128
</div>

packages/internarbeidsflate-decorator-v3/src/components/Menu.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { useGenerateLinks } from './Links/useGenerateLinks';
88

99
const Menu: React.FC = () => {
1010
const isOpen = useAppState((state) => state.open);
11-
const isFullScreen = useAppState((state) => state.isFullScreen);
1211

1312
const environment = useAppState((state) => state.environment);
1413

@@ -22,9 +21,7 @@ const Menu: React.FC = () => {
2221
if (!isOpen) return null;
2322

2423
return (
25-
<div
26-
className={classNames('dr-bg-background', { 'dr-h-full': isFullScreen })}
27-
>
24+
<div className={classNames('dr-bg-background')}>
2825
<DecoratorLinks {...links} />
2926
</div>
3027
);

packages/internarbeidsflate-decorator-v3/src/states/AppState.ts

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const useAppState = create<AppState>(() => ({
1111
showHotkeys: true,
1212
environment: 'q2',
1313
urlFormat: 'NAV_NO',
14-
isFullScreen: false,
1514
}));
1615

1716
export interface AppState {
@@ -25,5 +24,4 @@ export interface AppState {
2524
environment: Environment;
2625
urlFormat: UrlFormat;
2726
proxy?: string | undefined;
28-
isFullScreen?: boolean;
2927
}

0 commit comments

Comments
 (0)