-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from InseeFr/feat/use-classnames-and-fr-cx
feat: use classnames and fr cx
- Loading branch information
Showing
17 changed files
with
116 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { fr } from "@codegouvfr/react-dsfr"; | ||
import classnames from "classnames"; | ||
import React from "react"; | ||
|
||
export function RoundaboutContainer({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<div className="lunatic-roundabout fr-container--fluid"> | ||
<div className="fr-grid-row">{children}</div> | ||
<div className={classnames("lunatic-roundabout", fr.cx("fr-container--fluid"))}> | ||
<div className={fr.cx("fr-grid-row")}>{children}</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { fr } from "@codegouvfr/react-dsfr"; | ||
import classnames from "classnames"; | ||
import React from "react"; | ||
|
||
export function RoundaboutItContainer({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<div className="roundabout-iteration-title fr-col-12"> | ||
<hr className="fr-pb-2w" /> | ||
<div className="fr-grid-row fr-border fr-pb-2w">{children}</div> | ||
<div className={classnames("roundabout-iteration-title", fr.cx("fr-col-12"))}> | ||
<hr className={fr.cx("fr-pb-2w")} /> | ||
<div className={fr.cx("fr-grid-row", "fr-pb-2w")}>{children}</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import { fr } from "@codegouvfr/react-dsfr"; | ||
import classnames from "classnames"; | ||
|
||
export function RoundaboutLabel({ value }: { value: string }) { | ||
return ( | ||
<div className="fr-col-12"> | ||
<h1 className="roundabout-label fr-h3">{value}</h1> | ||
<div className={fr.cx("fr-col-12")}> | ||
<h1 className={classnames("roundabout-label", fr.cx("fr-h3"))}>{value}</h1> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.