removed certian css stuff

This commit is contained in:
Christopher committed 2021-01-03 21:32:03 +01:00
1 parent 7a32bbc0c4
commit f29b9d2be6
3 files changed
+3 -61

No files matched your search

@@ -3,23 +3,18 @@ import { AppWrapper } from "../../../ui/components/AppWrapper";
import { AppContent } from "../../../ui/components/AppContent";
import { SelloutTitle } from "./SelloutTitle";
import { SelloutListContainer } from "./SelloutList/SelloutListContainer";
import { NavigationBar } from "./navigation/NavigationBar";
import { Switch, Route } from "react-router-dom";
import "./Sellout.css";
import { ListingFormContainer } from "./form/ListingFormContainer";
import {ListingForm} from "./form/ListingForm";
export const SelloutApp = () => {
return (
<AppWrapper id="sellout-app">
<SelloutTitle />
<AppContent>
<Switch>
<Route path="/sellout" exact component={SelloutListContainer} />
<Route path="/sellout/new" component={ListingFormContainer} />
</Switch>
<ListingForm />
<SelloutListContainer />
</AppContent>
<NavigationBar />
</AppWrapper>
);
};
@@ -1,10 +0,0 @@
import React from "react";
import { ListingForm } from "./ListingForm";
export const ListingFormContainer = () => {
return (
<div>
<ListingForm />
</div>
);
};
@@ -1,43 +0,0 @@
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: '#262525',
},
icon: {
color: '#f44336',
},
}));
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='/sellout'
/>
<BottomNavigationAction
component={Link}
icon={<AddCircleIcon />}
to='/sellout/new'
/>
</BottomNavigation>
);
};