Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Jul 18, 2024
1 parent 98f7174 commit 28e83fc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
29 changes: 22 additions & 7 deletions client/src/components/cards/students-card-with-trend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function StudentsCardWithTrend({
label,
number,
tagsNode,
to = "#",
to,
trendGraph = <>trendGraph</>,
}: CardProps) {
return (
Expand All @@ -26,9 +26,25 @@ export default function StudentsCardWithTrend({
<Container fluid>
<Row>
<Col>
{/* <h3 className="fr-card__title"> */}
<Title as="h3" className="fr-card__title">
<a href={to} className="fr-card__link">
{to ? (
<Title as="h3" className="fr-card__title">
<a href={to} className="fr-card__link">
{label ? (
<div className="students-label">{label}</div>
) : (
<div className="students-label">
Etudiants
<br />
inscrits
</div>
)}
<div className="key-number">
{number.toLocaleString("fr-FR")}
</div>
</a>
</Title>
) : (
<Title as="h3" className="fr-card__title">
{label ? (
<div className="students-label">{label}</div>
) : (
Expand All @@ -41,9 +57,8 @@ export default function StudentsCardWithTrend({
<div className="key-number">
{number.toLocaleString("fr-FR")}
</div>
</a>
</Title>
{/* </h3> */}
</Title>
)}
</Col>
<Col style={{ height: "80px" }}>{trendGraph}</Col>
</Row>
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/atlas/components/main/tabs/sectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export function Sectors() {
<SectortsChart data={dataSectors || []} isLoading={isLoading} />
</Col>
</Row>
{polygonsData.length > 1 && (
{polygonsData.length > 1 && geoId !== "D075" ? (
<>
<Row className="fr-my-5w">
<Col>
Expand All @@ -244,7 +244,7 @@ export function Sectors() {
</Col>
</Row>
</>
)}
) : null}
<Row className="fr-mt-5w">
<Col>
<Title as="h3" look="h5">
Expand Down

0 comments on commit 28e83fc

Please sign in to comment.