diff --git a/src/components/desktopcontainer.js b/src/components/desktopcontainer.js index d5caa28..bb13da9 100644 --- a/src/components/desktopcontainer.js +++ b/src/components/desktopcontainer.js @@ -15,18 +15,13 @@ */ import PropTypes from 'prop-types'; -import React, { useState } from 'react'; -import { Link, useLocation } from 'react-router-dom'; -import Heading from './heading'; +import React from 'react'; import { Segment, Visibility, } from 'semantic-ui-react'; const DesktopContainer = ({ children }) => { - const location = useLocation(); - const [fixed, setFixed] = useState(false); - const hideFixedMenu = () => setFixed(false); const showFixedMenu = () => setFixed(true); diff --git a/src/components/layout.js b/src/components/layout.js index 6a68fac..ed7c632 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -19,16 +19,9 @@ import ResponsiveContainer from './responsivecontainer'; import { Container, Divider, - Icon, - List, Segment, } from 'semantic-ui-react'; -const referenceButtonStyle = { - width: '100%', - maxWidth: '500px', -}; - const Layout = () => ( diff --git a/src/components/mobilecontainer.js b/src/components/mobilecontainer.js index 7b3e532..66d92f3 100644 --- a/src/components/mobilecontainer.js +++ b/src/components/mobilecontainer.js @@ -17,7 +17,6 @@ import PropTypes from 'prop-types'; import React, { useState } from 'react'; import Heading from './heading'; -import { Link, useLocation } from 'react-router-dom'; import { Container, Icon, @@ -27,17 +26,10 @@ import { } from 'semantic-ui-react'; const MobileContainer = ({ children }) => { - const location = useLocation(); - const [sidebarIsOpen, setSidebarIsOpen] = useState(false); const handleSidebarHide = () => setSidebarIsOpen(false); const handleToggle = () => setSidebarIsOpen(true); - const menuItemStyle = { - height: '44.2px', - width: '100%', - padding: '13px 16px', - }; return (