File tree 4 files changed +2
-10
lines changed
packages/internarbeidsflate-decorator-v3/src
4 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,8 @@ import Markup from './Markup';
7
7
import MenuButton from './MenuButton' ;
8
8
import SearchArea from './SearchArea' ;
9
9
import VeilederDetails from './VeilederDetails' ;
10
- import { useAppState } from '../states/AppState' ;
11
10
12
11
const Banner : React . FC = ( ) => {
13
- const isFullScreen = useAppState ( ( state ) => state . isFullScreen ) ;
14
-
15
12
return (
16
13
< div className = "dr-p-2 dr-bg-background dr-text-white" >
17
14
< div className = "dr-max-w-full dr-mx-auto" >
@@ -25,7 +22,7 @@ const Banner: React.FC = () => {
25
22
< HotkeyMenuElement />
26
23
< VeilederDetails />
27
24
</ div >
28
- { ! isFullScreen && < MenuButton /> }
25
+ < MenuButton />
29
26
</ div >
30
27
</ div >
31
28
</ div >
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { useGenerateLinks } from './Links/useGenerateLinks';
8
8
9
9
const Menu : React . FC = ( ) => {
10
10
const isOpen = useAppState ( ( state ) => state . open ) ;
11
- const isFullScreen = useAppState ( ( state ) => state . isFullScreen ) ;
12
11
13
12
const environment = useAppState ( ( state ) => state . environment ) ;
14
13
@@ -22,9 +21,7 @@ const Menu: React.FC = () => {
22
21
if ( ! isOpen ) return null ;
23
22
24
23
return (
25
- < div
26
- className = { classNames ( 'dr-bg-background' , { 'dr-h-full' : isFullScreen } ) }
27
- >
24
+ < div className = { classNames ( 'dr-bg-background' ) } >
28
25
< DecoratorLinks { ...links } />
29
26
</ div >
30
27
) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ export const useAppState = create<AppState>(() => ({
11
11
showHotkeys : true ,
12
12
environment : 'q2' ,
13
13
urlFormat : 'NAV_NO' ,
14
- isFullScreen : false ,
15
14
} ) ) ;
16
15
17
16
export interface AppState {
@@ -25,5 +24,4 @@ export interface AppState {
25
24
environment : Environment ;
26
25
urlFormat : UrlFormat ;
27
26
proxy ?: string | undefined ;
28
- isFullScreen ?: boolean ;
29
27
}
You can’t perform that action at this time.
0 commit comments