-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ContactCard & FilterListToggleButton style #65
Conversation
23e5090
to
b8c53f6
Compare
b8c53f6
to
5d5fc0e
Compare
src/pages/FilterListBySelector.tsx
Outdated
<Typography | ||
sx={{ | ||
fontSize: "14px", | ||
fontWeight: 400, | ||
lineHeight: "30px", | ||
letterSpacing: "0.15px", | ||
color: "#797676", | ||
}} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utilise plutôt un style de texte déjà enregistré.
src/pages/FilterListToggleButton.tsx
Outdated
@@ -0,0 +1,64 @@ | |||
import ToggleButton from "@mui/material/ToggleButton"; | |||
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup"; | |||
import React from "react"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On évite d'importer tout React, importe plutôt ce dont tu as besoin.
src/pages/FilterListToggleButton.tsx
Outdated
firstOption, | ||
secondOption, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On pourrait faire un tableau d'options pour prévoir le cas où on a plus de 2 éléments je pense
src/pages/FilterListToggleButton.tsx
Outdated
<ToggleButton | ||
sx={{ | ||
typography: "bodyMedium", | ||
textTransform: "none", | ||
fontWeight: 400, | ||
borderRadius: "24px", | ||
borderRightWidth: 0, | ||
}} | ||
value={firstOption} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si on répète le style mivuex vaut séparer dans un composant
<Box | ||
className="Body" | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "center", | ||
width: "100%", | ||
height: "100%", | ||
}} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utilise une
src/pages/contacts/ContactCard.tsx
Outdated
<Row gap={2}> | ||
<LocationOnIcon fontSize="small" /> | ||
<Typography variant="titleSmall">{cityName}</Typography> | ||
</Row> | ||
<Row gap={2}> | ||
<LocalPhoneOutlinedIcon fontSize="small" /> | ||
<Typography variant="titleSmall">{phone}</Typography> | ||
</Row> | ||
<Row gap={2}> | ||
<EmailIcon fontSize="small" /> | ||
<Typography variant="titleSmall">{email}</Typography> | ||
</Row> | ||
<Row gap={2}> | ||
<DesktopWindowsOutlinedIcon fontSize="small" /> | ||
<Typography variant="titleSmall">{functionContact}</Typography> | ||
</Row> | ||
</Stack> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ça passe mais quand il y a répétition ça peut être intéréssant de créer un composant dédié.
No description provided.