Skip to content

Commit b687c82

Browse files
new attempt (#41)
1 parent 6797570 commit b687c82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/desktopcontainer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
} from 'semantic-ui-react';
2323

2424
const DesktopContainer = ({ children }) => {
25+
const [fixed, setFixed] = useState(false);
2526
const hideFixedMenu = () => setFixed(false);
2627
const showFixedMenu = () => setFixed(true);
2728

@@ -46,6 +47,10 @@ const DesktopContainer = ({ children }) => {
4647
</Segment>
4748
</Visibility>
4849

50+
<Responsive>
51+
<Menu fixed={fixed ? 'top' : null} />
52+
</Responsive>
53+
4954
{children}
5055
</div>
5156
);

0 commit comments

Comments
 (0)