mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
removed certian css stuff
This commit is contained in:
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 { AppContent } from "../../../ui/components/AppContent";
|
||||||
import { SelloutTitle } from "./SelloutTitle";
|
import { SelloutTitle } from "./SelloutTitle";
|
||||||
import { SelloutListContainer } from "./SelloutList/SelloutListContainer";
|
import { SelloutListContainer } from "./SelloutList/SelloutListContainer";
|
||||||
import { NavigationBar } from "./navigation/NavigationBar";
|
|
||||||
import { Switch, Route } from "react-router-dom";
|
|
||||||
|
|
||||||
import "./Sellout.css";
|
import "./Sellout.css";
|
||||||
import { ListingFormContainer } from "./form/ListingFormContainer";
|
import {ListingForm} from "./form/ListingForm";
|
||||||
|
|
||||||
export const SelloutApp = () => {
|
export const SelloutApp = () => {
|
||||||
return (
|
return (
|
||||||
<AppWrapper id="sellout-app">
|
<AppWrapper id="sellout-app">
|
||||||
<SelloutTitle />
|
<SelloutTitle />
|
||||||
<AppContent>
|
<AppContent>
|
||||||
<Switch>
|
<ListingForm />
|
||||||
<Route path="/sellout" exact component={SelloutListContainer} />
|
<SelloutListContainer />
|
||||||
<Route path="/sellout/new" component={ListingFormContainer} />
|
|
||||||
</Switch>
|
|
||||||
</AppContent>
|
</AppContent>
|
||||||
<NavigationBar />
|
|
||||||
</AppWrapper>
|
</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>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
Reference in new issue
Block a user