Skip to content

Commit

Permalink
feat: add chip
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Jan 6, 2023
1 parent 03ac227 commit 3b6f2fd
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions src/ui/components/pages/service/section/functions/function.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,47 @@
import React from 'react';
import Typography from '@mui/material/Typography';
import { makeStyles } from 'tss-react/mui';
import { Chip } from '@mui/material';

export const Function = ({ fct }) => {
const { classes } = useStyles();

return (
<li>
<li className={classes.li}>
<Typography
variant='subtitle1'
textTransform='uppercase'
className={classes.fctLabel}
>
{fct['label']}
</Typography>
<Typography variant='body1' color='GrayText'>
<Typography
variant='body1'
color='GrayText'
className={classes.descriptionText}
>
{fct['description']}
</Typography>
{fct.products.map((p) => (
<Chip
key={p.id}
className={classes.chip}
label={p.label}
color='secondary'
/>
))}
</li>
);
};

const useStyles = makeStyles()(() => ({
fctLabel: {},
const useStyles = makeStyles()((theme) => ({
li: {
marginBottom: theme.spacing(1),
},
descriptionText: {
//marginBottom: theme.spacing(1),
},
chip: {
marginTop: theme.spacing(1),
marginRight: theme.spacing(0.5),
},
}));

0 comments on commit 3b6f2fd

Please sign in to comment.