more formatting

This commit is contained in:
Christopher committed 2021-03-02 20:45:41 +01:00
1 parent 046447b0fb
commit f552c1212c
157 files changed
+635 -1579

No files matched your search

@@ -12,12 +12,12 @@ import { SelloutThemeProvider } from '../providers/SelloutThemeProvider';
export const SelloutApp = () => {
return (
<SelloutThemeProvider>
<AppWrapper id='sellout-app'>
<AppWrapper id="sellout-app">
<SelloutTitle />
<AppContent>
<Switch>
<Route path='/sellout' exact component={SelloutListContainer} />
<Route path='/sellout/new' component={ListingFormContainer} />
<Route path="/sellout" exact component={SelloutListContainer} />
<Route path="/sellout/new" component={ListingFormContainer} />
</Switch>
</AppContent>
<NavigationBar />
@@ -51,7 +51,7 @@ export const SelloutItem = (listing) => {
<div className={classes.content}>
<Paper elevation={2} className={classes.paper}>
<div className={classes.header}>
<Typography className={classes.headerTypo} variant='h5'>
<Typography className={classes.headerTypo} variant="h5">
{listing.name}
</Typography>
<Typography
@@ -60,24 +60,21 @@ export const SelloutItem = (listing) => {
>
{listing.number}
</Typography>
<Typography variant='h5' style={{ padding: 5 }}>
<Typography variant="h5" style={{ padding: 5 }}>
{listing.title}
</Typography>
</div>
{listing.url ? (
<PictureResponsive
src={listing.url}
alt={`${listing.name} image`}
/>
<PictureResponsive src={listing.url} alt={`${listing.name} image`} />
) : (
<Typography style={{ margin: 10 }}>
No image provided{' '}
<span role='img' aria-label='emoji'>
<span role="img" aria-label="emoji">
🙁
</span>
</Typography>
)}
<Typography variant='h6' className={classes.desc}>
<Typography variant="h6" className={classes.desc}>
{listing.description}
</Typography>
<div>
@@ -23,7 +23,7 @@ const useStyles = makeStyles((theme) => ({
export const SelloutTitle = () => {
const classes = useStyles();
return (
<Paper className={classes.root} square variant='outlined' elevation={24}>
<Paper className={classes.root} square variant="outlined" elevation={24}>
<FontAwesomeIcon icon={faAd} className={classes.icon} />
</Paper>
);
@@ -47,32 +47,32 @@ export const ListingForm = () => {
<TextField
className={classes.input}
onChange={(e) => setTitle(e.target.value)}
placeholder='Title on listing..'
placeholder="Title on listing.."
inputProps={{ className: classes.textFieldInput }}
style={{ width: '80%' }}
size='medium'
size="medium"
/>
<TextField
className={classes.input}
placeholder='Image URL'
placeholder="Image URL"
onChange={(e) => setUrl(e.target.value)}
inputProps={{ className: classes.textFieldInput }}
style={{ width: '80%' }}
size='medium'
variant='outlined'
size="medium"
variant="outlined"
/>
<TextField
className={classes.input}
onChange={(e) => setDescription(e.target.value)}
placeholder='Description'
placeholder="Description"
inputProps={{ className: classes.multilineFieldInput }}
style={{ width: '80%' }}
size='medium'
size="medium"
multiline
rows={4}
variant='outlined'
variant="outlined"
/>
<Button onClick={addListing} className={classes.postButton}>
@@ -31,12 +31,12 @@ export const NavigationBar = () => {
<BottomNavigationAction
component={Link}
icon={<FontAwesomeIcon icon={faHome} />}
to='/sellout'
to="/sellout"
/>
<BottomNavigationAction
component={Link}
icon={<AddCircleIcon />}
to='/sellout/new'
to="/sellout/new"
/>
</BottomNavigation>
);