File tree Expand file tree Collapse file tree 3 files changed +1
-21
lines changed
Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Original file line number Diff line number Diff line change 1515 */
1616
1717import PropTypes from 'prop-types' ;
18- import React , { useState } from 'react' ;
19- import { Link , useLocation } from 'react-router-dom' ;
20- import Heading from './heading' ;
18+ import React from 'react' ;
2119import {
2220 Segment ,
2321 Visibility ,
2422} from 'semantic-ui-react' ;
2523
2624const DesktopContainer = ( { children } ) => {
27- const location = useLocation ( ) ;
28- const [ fixed , setFixed ] = useState ( false ) ;
29-
3025 const hideFixedMenu = ( ) => setFixed ( false ) ;
3126 const showFixedMenu = ( ) => setFixed ( true ) ;
3227
Original file line number Diff line number Diff line change @@ -19,16 +19,9 @@ import ResponsiveContainer from './responsivecontainer';
1919import {
2020 Container ,
2121 Divider ,
22- Icon ,
23- List ,
2422 Segment ,
2523} from 'semantic-ui-react' ;
2624
27- const referenceButtonStyle = {
28- width : '100%' ,
29- maxWidth : '500px' ,
30- } ;
31-
3225const Layout = ( ) => (
3326 < ResponsiveContainer >
3427 < Segment style = { { paddingBottom : '8em' } } textAlign = "center" basic >
Original file line number Diff line number Diff line change 1717import PropTypes from 'prop-types' ;
1818import React , { useState } from 'react' ;
1919import Heading from './heading' ;
20- import { Link , useLocation } from 'react-router-dom' ;
2120import {
2221 Container ,
2322 Icon ,
@@ -27,17 +26,10 @@ import {
2726} from 'semantic-ui-react' ;
2827
2928const MobileContainer = ( { children } ) => {
30- const location = useLocation ( ) ;
31-
3229 const [ sidebarIsOpen , setSidebarIsOpen ] = useState ( false ) ;
3330 const handleSidebarHide = ( ) => setSidebarIsOpen ( false ) ;
3431 const handleToggle = ( ) => setSidebarIsOpen ( true ) ;
3532
36- const menuItemStyle = {
37- height : '44.2px' ,
38- width : '100%' ,
39- padding : '13px 16px' ,
40- } ;
4133
4234 return (
4335 < div >
You can’t perform that action at this time.
0 commit comments