-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add homeTable skeleton * connect filters with table * exclude translation files in sonar analysis (duplicate lines) * add sort * add commentDialog and link to SU page * add some home table tests * add states contactOutcome and closingCause * rework accountNavigation * review * rework translation * rename translate.ts and move file in hooks folder
- Loading branch information
1 parent
d4fd326
commit c9866d7
Showing
32 changed files
with
1,168 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
sonar.projectKey=InseeFr_Sonor | ||
sonar.organization=inseefr | ||
sonar.organization=inseefr | ||
sonar.exclusions=src/i18n-fr.js,src/i18n-en.js |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export const closingCausesEnum = ["NPA", "NPI", "NPX", "ROW"]; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export const contactOutcomeEnum = [ | ||
"INA", | ||
"IMP", | ||
"REF", | ||
"ALA", | ||
"UCD", | ||
"UTR", | ||
"DCD", | ||
"NUH", | ||
"DUK", | ||
"DUU", | ||
"NOA", | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export const surveyUnitStatesEnum = [ | ||
"NVM", | ||
"NNS", | ||
"ANV", | ||
"VIN", | ||
"VIC", | ||
"PRC", | ||
"AOC", | ||
"APS", | ||
"INS", | ||
"WFT", | ||
"WFS", | ||
"TBR", | ||
"FIN", | ||
"NVA", | ||
"CLO", | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useIntl } from "react-intl"; | ||
|
||
export const useTranslation = () => { | ||
const intl = useIntl(); | ||
|
||
return { | ||
translate: (id: string) => { | ||
return intl.formatMessage({ id }); | ||
}, | ||
}; | ||
}; |
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,17 +1,19 @@ | ||
import Stack from "@mui/material/Stack"; | ||
import Typography from "@mui/material/Typography"; | ||
import { FiltersCard } from "../ui/FiltersCard"; | ||
import { useIntl } from "react-intl"; | ||
import { HomeTableCard } from "../ui/HomeTableCard"; | ||
import { useTranslation } from "../hooks/useTranslation"; | ||
|
||
export const Home = () => { | ||
const intl = useIntl(); | ||
const { translate } = useTranslation(); | ||
|
||
return ( | ||
<Stack px={4} py={2} gap={2}> | ||
<Typography variant="headlineLarge" fontWeight={"400"} pb={2} pt={1} alignSelf={"center"}> | ||
{intl.formatMessage({ id: "homepageTitle" })} | ||
{translate("homepageTitle")} | ||
</Typography> | ||
<FiltersCard /> | ||
<HomeTableCard /> | ||
</Stack> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Stack } from "@mui/material"; | ||
import { useParams } from "react-router-dom"; | ||
|
||
export const SurveyUnitPage = () => { | ||
const { id } = useParams(); | ||
return <Stack>UE {id}</Stack>; | ||
}; |
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.