Skip to content

Commit db7bd02

Browse files
removed unused items (#38)
1 parent a85c52c commit db7bd02

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

src/components/desktopcontainer.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,13 @@
1515
*/
1616

1717
import 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';
2119
import {
2220
Segment,
2321
Visibility,
2422
} from 'semantic-ui-react';
2523

2624
const DesktopContainer = ({ children }) => {
27-
const location = useLocation();
28-
const [fixed, setFixed] = useState(false);
29-
3025
const hideFixedMenu = () => setFixed(false);
3126
const showFixedMenu = () => setFixed(true);
3227

src/components/layout.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,9 @@ import ResponsiveContainer from './responsivecontainer';
1919
import {
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-
3225
const Layout = () => (
3326
<ResponsiveContainer>
3427
<Segment style={{ paddingBottom: '8em' }} textAlign="center" basic>

src/components/mobilecontainer.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import PropTypes from 'prop-types';
1818
import React, { useState } from 'react';
1919
import Heading from './heading';
20-
import { Link, useLocation } from 'react-router-dom';
2120
import {
2221
Container,
2322
Icon,
@@ -27,17 +26,10 @@ import {
2726
} from 'semantic-ui-react';
2827

2928
const 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>

0 commit comments

Comments
 (0)