-
Notifications
You must be signed in to change notification settings - Fork 4
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 #42 from betagouv/feat/page-resultat-incertain
Feat/page resultat incertain
- Loading branch information
Showing
24 changed files
with
440 additions
and
267 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
5 changes: 5 additions & 0 deletions
5
anssi-nis2-ui/src/Domaine/Simulateur/Operations/FiltresSecteurs.ts
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,5 @@ | ||
import { SecteurActivite } from "../SecteursActivite"; | ||
import { estSecteurListe } from "./operationsSecteurs.ts"; | ||
|
||
export const auMoinsUnSecteurListe = (secteurs: SecteurActivite[]) => | ||
secteurs.some(estSecteurListe); |
20 changes: 20 additions & 0 deletions
20
anssi-nis2-ui/src/Domaine/Simulateur/Operations/FiltresTailleEntite.ts
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,20 @@ | ||
import { | ||
TrancheChiffreAffaire, | ||
TrancheNombreEmployes, | ||
} from "../ChampsSimulateur"; | ||
|
||
export const estPetiteEntreprise = ( | ||
nombreEmployes: TrancheNombreEmployes[], | ||
chiffreAffaire: TrancheChiffreAffaire[], | ||
) => nombreEmployes.includes("petit") && chiffreAffaire.includes("petit"); | ||
export const estMoyenneEntreprise = ( | ||
nombreEmployes: TrancheNombreEmployes[], | ||
chiffreAffaire: TrancheChiffreAffaire[], | ||
) => | ||
(nombreEmployes.includes("moyen") && chiffreAffaire.includes("moyen")) || | ||
(nombreEmployes.includes("moyen") && chiffreAffaire.includes("petit")) || | ||
(nombreEmployes.includes("petit") && chiffreAffaire.includes("moyen")); | ||
export const estGrandeEntreprise = ( | ||
nombreEmployes: TrancheNombreEmployes[], | ||
chiffreAffaire: TrancheChiffreAffaire[], | ||
) => nombreEmployes.includes("grand") || chiffreAffaire.includes("grand"); |
Oops, something went wrong.