11import React from 'react' ;
2- import { Redirect , useHistory } from 'react-router-dom' ;
2+ import { Redirect } from 'react-router-dom' ;
33import { AppRoute } from '../../../routes' ;
4- import { Box , FlexBox , IfElse , PrimaryButton } from '../../components' ;
4+ import { Box , FlexBox , IfElse } from '../../components' ;
55import { AuthenticatedLayout } from '../common/layouts/AuthenticatedLayout' ;
66import { SidebarContainer } from '../common/layouts/SidebarContainer' ;
77import { Tabs } from '../common/Tabs' ;
88import Header from './Header' ;
99import Stacks from './Stacks' ;
10- import { routePaths } from '../../../routes/routePaths' ;
11- import { useSelector } from '../../hooks' ;
12- import { workspaceSelectors } from '../../../redux/selectors' ;
10+ // import { routePaths } from '../../../routes/routePaths';
11+ // import { useSelector } from '../../hooks';
12+ // import { workspaceSelectors } from '../../../redux/selectors';
1313
1414export const BasePage : React . FC < {
1515 tabPages : TabPage [ ] ;
@@ -21,8 +21,8 @@ export const BasePage: React.FC<{
2121 renderHeaderRight ?: ( ) => JSX . Element ;
2222 headerWithButtons ?: boolean ;
2323} > = ( {
24- fromRegisterComponent = false ,
25- fromConfigureComponent = false ,
24+ // fromRegisterComponent = false,
25+ // fromConfigureComponent = false,
2626 tabPages,
2727 title,
2828 breadcrumbs,
@@ -31,8 +31,8 @@ export const BasePage: React.FC<{
3131 headerWithButtons,
3232 children,
3333} ) => {
34- const history = useHistory ( ) ;
35- const selectedWorkspace = useSelector ( workspaceSelectors . selectedWorkspace ) ;
34+ // const history = useHistory();
35+ // const selectedWorkspace = useSelector(workspaceSelectors.selectedWorkspace);
3636
3737 return (
3838 < AuthenticatedLayout breadcrumb = { [ ...breadcrumbs ] } >
@@ -79,7 +79,7 @@ export const BasePage: React.FC<{
7979 </ Box >
8080 </ SidebarContainer >
8181
82- { ! fromRegisterComponent && ! fromConfigureComponent && (
82+ { /* { !fromRegisterComponent && !fromConfigureComponent && (
8383 <FlexBox
8484 style={{
8585 position: 'fixed',
@@ -98,7 +98,7 @@ export const BasePage: React.FC<{
9898 </PrimaryButton>
9999 </Box>
100100 </FlexBox>
101- ) }
101+ )} */ }
102102 </ AuthenticatedLayout >
103103 ) ;
104104} ;
0 commit comments