well, it works

This commit is contained in:
Tommy Parnell
2019-06-02 17:22:53 -04:00
parent 4cc335744b
commit b435afb12b
2 changed files with 15 additions and 6 deletions

View File

@@ -14,7 +14,8 @@ const useStyles = makeStyles({
marginBottom: "1rem"
},
inHouse: {
// backgroundColor: '#2bfc58'
fontSize: 14,
color: '#00ad26'
},
bullet: {
display: "inline-block",
@@ -27,7 +28,8 @@ const useStyles = makeStyles({
btmBox: {
padding: "1rem",
display: "flex",
flexDirection: "row"
flexDirection: "row",
justifyContent: 'space-between'
},
spacer: {
flexGrow: 1
@@ -40,7 +42,7 @@ const useStyles = makeStyles({
marginBottom: 12
},
header: {
height: '3rem'
height: "3rem"
}
});
@@ -50,7 +52,7 @@ function SimpleCard({ name, number, inHouse, isNitro, desc, abv }) {
return (
<Card
className={clsx({ [classes.card]: true, [classes.inHouse]: inHouse })}
className={clsx({ [classes.card]: true})}
>
<CardContent>
<Typography
@@ -77,7 +79,15 @@ function SimpleCard({ name, number, inHouse, isNitro, desc, abv }) {
ABV: {abv}%
</Typography>
)}
<div className={classes.spacer} />
{inHouse && (
<Typography
className={classes.inHouse}
color="textSecondary"
gutterBottom
>
IN HOUSE
</Typography>
)}
{isNitro && (
<Typography
className={classes.nitro}

View File

@@ -13,7 +13,6 @@ export default function Table() {
const styles = useStyles();
console.log(styles);
const cards = beers
.filter(i => i.inHouse)
.map((i, index) => (
<Card key={`${i.name}-${index}`} number={index + 1} {...i} />
));