Improve/marketplace (#184)

Overall fixes for sellout => marketplace.
This commit is contained in:
Christopher Gjelten authored and GitHub committed 2021-03-28 04:20:12 +02:00
1 parent baf6dedb6f
commit a88286f97a
23 files changed
+85 -52

No files matched your search

@@ -0,0 +1,39 @@
import React, { useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Link } from 'react-router-dom';
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faHome } from '@fortawesome/free-solid-svg-icons';
import AddCircleIcon from '@material-ui/icons/AddCircle';
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
backgroundColor: theme.palette.background.default,
},
icon: {
color: theme.palette.primary.main,
},
}));
export const NavigationBar = () => {
const classes = useStyles();
const [activePage, setActivePage] = useState(0);
return (
<BottomNavigation
value={activePage}
onChange={(event, newPage) => {
setActivePage(newPage);
}}
showLabels
className={classes.root}
>
<BottomNavigationAction
component={Link}
icon={<FontAwesomeIcon icon={faHome} />}
to="/marketplace"
/>
<BottomNavigationAction component={Link} icon={<AddCircleIcon />} to="/marketplace/new" />
</BottomNavigation>
);
};