File tree Expand file tree Collapse file tree 3 files changed +19
-12
lines changed
common/layouts/AuthenticatedLayout Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
22
33import { FlexBox , Box } from '../../../../components' ;
4+ import { useLocationPath } from '../../../../hooks' ;
45import { AuthenticatedHeader } from './AuthenticatedHeader' ;
56import { AuthenticatedSidebar } from './AuthenticatedSidebar' ;
67
78import styles from './index.module.scss' ;
89
9- export const AuthenticatedLayout : React . FC = ( { children } ) => {
10- const [ mobileMenuOpen , setMobileMenuOpen ] = useState ( false ) ;
10+ export const AuthenticatedLayout : React . FC = ( { children } ) => {
11+ const locationPath = useLocationPath ( ) ;
12+ const [ mobileMenuOpen , setMobileMenuOpen ] = useState (
13+ locationPath . includes ( 'components' ) ? true : false ,
14+ ) ;
1115
1216 return (
13- < FlexBox >
14- < AuthenticatedSidebar setMobileMenuOpen = { setMobileMenuOpen } mobileMenuOpen = { mobileMenuOpen } />
15- < FlexBox flexDirection = 'column' className = { styles . content } flex = { 1 } >
16- < Box > < AuthenticatedHeader setMobileMenuOpen = { setMobileMenuOpen } /> </ Box >
17- < FlexBox >
18- { children }
19- </ FlexBox >
20- </ FlexBox >
17+ < FlexBox >
18+ < AuthenticatedSidebar
19+ setMobileMenuOpen = { setMobileMenuOpen }
20+ mobileMenuOpen = { mobileMenuOpen }
21+ />
22+ < FlexBox flexDirection = "column" className = { styles . content } flex = { 1 } >
23+ < Box >
24+ < AuthenticatedHeader setMobileMenuOpen = { setMobileMenuOpen } />
25+ </ Box >
26+ < FlexBox > { children } </ FlexBox >
2127 </ FlexBox >
28+ </ FlexBox >
2229 ) ;
2330} ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const useService = (): ServiceInterface => {
3131 onFailure : ( ) => setFetching ( false ) ,
3232 } ) ,
3333 ) ;
34- } ) ;
34+ } , [ ] ) ;
3535
3636 const setFetching = ( fetching : boolean ) => {
3737 dispatch ( pipelinePagesActions . setFetching ( { fetching } ) ) ;
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ export const useHeaderCols = ({
309309 place = "top"
310310 effect = "solid"
311311 >
312- < Paragraph color = "white" > </ Paragraph >
312+ < Paragraph color = "white" > { run . created } </ Paragraph >
313313 </ ReactTooltip >
314314 </ FlexBox >
315315 ) ,
You can’t perform that action at this time.
0 commit comments