Skip to content
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

Merged
merged 5 commits into from
Jan 22, 2024

Conversation

RenauxLeaInsee
Copy link
Contributor

No description provided.

@RenauxLeaInsee RenauxLeaInsee self-assigned this Jan 19, 2024
@RenauxLeaInsee RenauxLeaInsee marked this pull request as ready for review January 19, 2024 10:15
Comment on lines 13 to 21
<Typography
sx={{
fontSize: "14px",
fontWeight: 400,
lineHeight: "30px",
letterSpacing: "0.15px",
color: "#797676",
}}
>
Copy link
Collaborator

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é.

@@ -0,0 +1,64 @@
import ToggleButton from "@mui/material/ToggleButton";
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
import React from "react";
Copy link
Collaborator

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.

Comment on lines 12 to 13
firstOption,
secondOption,
Copy link
Collaborator

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

Comment on lines 39 to 48
<ToggleButton
sx={{
typography: "bodyMedium",
textTransform: "none",
fontWeight: 400,
borderRadius: "24px",
borderRightWidth: 0,
}}
value={firstOption}
>
Copy link
Collaborator

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

Comment on lines +16 to +25
<Box
className="Body"
sx={{
display: "flex",
flexDirection: "column",
alignItems: "center",
width: "100%",
height: "100%",
}}
>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Utilise une

Comment on lines 60 to 76
<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>
Copy link
Collaborator

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é.

@Grafikart Grafikart merged commit eb22ddf into rebase-project Jan 22, 2024
2 of 4 checks passed
@Grafikart Grafikart deleted the feature/addContactList branch January 22, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants