Skip to content

Commit

Permalink
Renommer commun en sharedComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
NerOcrO committed May 10, 2024
1 parent c7db4f6 commit f4cbfbd
Show file tree
Hide file tree
Showing 47 changed files with 50 additions and 50 deletions.
6 changes: 3 additions & 3 deletions src/app/(both)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { PropsWithChildren, ReactElement } from 'react'

import { getProfilAtih } from '../../authentification'
import AccesRapide from '../../components/commun/AccesRapide'
import EnTete from '../../components/commun/EnTete'
import PiedDePage from '../../components/commun/PiedDePage'
import AccesRapide from '../../components/sharedComponents/AccesRapide'
import EnTete from '../../components/sharedComponents/EnTete'
import PiedDePage from '../../components/sharedComponents/PiedDePage'

export default async function Layout({ children }: PropsWithChildren): Promise<ReactElement> {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/(connecte)/creer-un-inventaire/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { notFound } from 'next/navigation'
import { ReactElement } from 'react'

import { getProfilAtih } from '../../../authentification'
import Breadcrumb from '../../../components/commun/Breadcrumb'
import CreerUnInventaire from '../../../components/CreerUnInventaire/CreerUnInventaire'
import Breadcrumb from '../../../components/sharedComponents/Breadcrumb'

const title = 'Créer un inventaire'
export const metadata: Metadata = {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(connecte)/creer-une-simulation/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { notFound } from 'next/navigation'
import { ReactElement } from 'react'

import { getProfilAtih } from '../../../authentification'
import Breadcrumb from '../../../components/commun/Breadcrumb'
import CreerUneSimulation from '../../../components/CreerUneSimulation/CreerUneSimulation'
import Breadcrumb from '../../../components/sharedComponents/Breadcrumb'

const title = 'Créer une simulation'
export const metadata: Metadata = {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(connecte)/indicateurs-cles/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { notFound } from 'next/navigation'
import { ReactElement } from 'react'

import { getProfilAtih } from '../../../authentification'
import Breadcrumb from '../../../components/commun/Breadcrumb'
import IndicateursCles from '../../../components/IndicateursCles/IndicateursCles'
import Breadcrumb from '../../../components/sharedComponents/Breadcrumb'
import { recupererLesIndicateursImpactsEquipementsRepository, recupererLesIndicateursImpactsEquipementsSommesRepository } from '../../../gateways/indicateursRepository'
import { recupererLesReferentielsTypesEquipementsRepository } from '../../../gateways/typesEquipementsRepository'
import { indicateursClesPresenter } from '../../../presenters/indicateursClesPresenter'
Expand Down
2 changes: 1 addition & 1 deletion src/app/(connecte)/inventaire/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { notFound } from 'next/navigation'
import { ReactElement } from 'react'

import { getProfilAtih } from '../../../authentification'
import Breadcrumb from '../../../components/commun/Breadcrumb'
import Inventaire from '../../../components/Inventaire/Inventaire'
import Breadcrumb from '../../../components/sharedComponents/Breadcrumb'
import { recupererLesModelesRepository } from '../../../gateways/modelesRepository'
import { recupererLesReferentielsTypesEquipementsRepository } from '../../../gateways/typesEquipementsRepository'
import { inventairePresenter } from '../../../presenters/inventairePresenter'
Expand Down
6 changes: 3 additions & 3 deletions src/app/(connecte)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { PropsWithChildren, ReactElement } from 'react'

import { getProfilAtih, checkIfNotConnected } from '../../authentification'
import AccesRapide from '../../components/commun/AccesRapide'
import EnTete from '../../components/commun/EnTete'
import PiedDePage from '../../components/commun/PiedDePage'
import AccesRapide from '../../components/sharedComponents/AccesRapide'
import EnTete from '../../components/sharedComponents/EnTete'
import PiedDePage from '../../components/sharedComponents/PiedDePage'

export default async function Layout({ children }: PropsWithChildren): Promise<ReactElement> {
await checkIfNotConnected()
Expand Down
2 changes: 1 addition & 1 deletion src/app/(connecte)/liste-equipements/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { notFound } from 'next/navigation'
import { ReactElement } from 'react'

import { getProfilAtih } from '../../../authentification'
import Breadcrumb from '../../../components/commun/Breadcrumb'
import ListeEquipements from '../../../components/ListeEquipements/ListeEquipements'
import Breadcrumb from '../../../components/sharedComponents/Breadcrumb'
import { recupererLesModelesRepository } from '../../../gateways/modelesRepository'
import { recupererLesReferentielsTypesEquipementsRepository } from '../../../gateways/typesEquipementsRepository'
import { listeEquipementsPresenter } from '../../../presenters/listeEquipementsPresenter'
Expand Down
2 changes: 1 addition & 1 deletion src/app/(connecte)/modifier-le-nom-inventaire/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Metadata } from 'next'
import { notFound } from 'next/navigation'
import { ReactElement } from 'react'

import Breadcrumb from '../../../components/commun/Breadcrumb'
import ModifierLeNomInventaire from '../../../components/ModifierLeNomInventaire/ModifierLeNomInventaire'
import Breadcrumb from '../../../components/sharedComponents/Breadcrumb'

const title = 'Modifier le nom de l’inventaire'
export const metadata: Metadata = {
Expand Down
6 changes: 3 additions & 3 deletions src/app/(deconnecte)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { PropsWithChildren, ReactElement } from 'react'

import { getProfilAtih } from '../../authentification'
import AccesRapide from '../../components/commun/AccesRapide'
import EnTete from '../../components/commun/EnTete'
import PiedDePage from '../../components/commun/PiedDePage'
import AccesRapide from '../../components/sharedComponents/AccesRapide'
import EnTete from '../../components/sharedComponents/EnTete'
import PiedDePage from '../../components/sharedComponents/PiedDePage'

export default async function Layout({ children }: PropsWithChildren): Promise<ReactElement> {
return (
Expand Down
6 changes: 3 additions & 3 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import Link from 'next/link'
import { ReactElement } from 'react'

import { getProfilAtih } from '../authentification'
import AccesRapide from '../components/commun/AccesRapide'
import EnTete from '../components/commun/EnTete'
import PiedDePage from '../components/commun/PiedDePage'
import AccesRapide from '../components/sharedComponents/AccesRapide'
import EnTete from '../components/sharedComponents/EnTete'
import PiedDePage from '../components/sharedComponents/PiedDePage'

export const metadata: Metadata = {
title: 'Page non trouvée',
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreerUnInventaire/CreerUnInventaire.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ReactElement } from 'react'

import { useCreerUnInventaire } from './useCreerUnInventaire'
import { formaterLeNomEtablissement } from '../../presenters/sharedPresenter'
import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

type CreerUnInventaireProps = Readonly<{
nomEtablissement: string
Expand Down
4 changes: 2 additions & 2 deletions src/components/CreerUnInventaire/useCreerUnInventaire.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useRouter } from 'next/navigation'
import { FormEvent } from 'react'

import { isLeNomInventaireExisteAction } from '../commun/action'
import { useModifierNouveauNomInventaire } from '../commun/useModifierNouveauNomInventaire'
import { isLeNomInventaireExisteAction } from '../sharedComponents/action'
import { useModifierNouveauNomInventaire } from '../sharedComponents/useModifierNouveauNomInventaire'

type UseCreerUnInventaire = Readonly<{
creerInventaire: (event: FormEvent<HTMLFormElement>) => Promise<void>
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreerUneSimulation/CreerUneSimulation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import HeureUtilisation from './HeureUtilisation'
import NombreEquipement from './NombreEquipement'
import { useCreerUneSimulation } from './useCreerUneSimulation'
import { formaterLeNomEtablissement } from '../../presenters/sharedPresenter'
import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

type CreerUneSimulationProps = Readonly<{
ancienNomInventaire: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreerUneSimulation/DureeDeVie.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FormEvent, ReactElement, useState } from 'react'

import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

export default function DureeDeVie(): ReactElement {
const [dureeDeVie, setDureeDeVie] = useState('0')
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreerUneSimulation/HeureUtilisation.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FormEvent, ReactElement, useState } from 'react'

import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

export default function HeureUtilisation(): ReactElement {
const [heureUtilisation, setHeureUtilisation] = useState('0')
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreerUneSimulation/NombreEquipement.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FormEvent, ReactElement, useState } from 'react'

import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

export default function NombreEquipement(): ReactElement {
const [nombreEquipement, setNombreEquipement] = useState('0')
Expand Down
4 changes: 2 additions & 2 deletions src/components/CreerUneSimulation/useCreerUneSimulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useRouter } from 'next/navigation'
import { FormEvent } from 'react'

import { StatutsInventaire } from '../../presenters/sharedPresenter'
import { isLeNomInventaireExisteAction } from '../commun/action'
import { useModifierNouveauNomInventaire } from '../commun/useModifierNouveauNomInventaire'
import { isLeNomInventaireExisteAction } from '../sharedComponents/action'
import { useModifierNouveauNomInventaire } from '../sharedComponents/useModifierNouveauNomInventaire'

type UseCreerUneSimulation = Readonly<{
creerUneSimulation: (event: FormEvent<HTMLFormElement>) => Promise<void>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Faq/Faq.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactElement } from 'react'

import Accordeon from '../commun/Accordeon'
import Accordeon from '../sharedComponents/Accordeon'

export default function Faq(): ReactElement {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/IndicateursCles/Indicateur.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactElement } from 'react'

import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

type IndicateurProps = Readonly<{
coin: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right'
Expand Down
8 changes: 4 additions & 4 deletions src/components/IndicateursCles/IndicateursCles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { donneesParCycleDeVie, donneesParTypeEquipement, donneesRepartitionParTy
import Indicateur from './Indicateur'
import Transcription from './Transcription'
import { EtapesAcv, IndicateursClesPresenter } from '../../presenters/indicateursClesPresenter'
import Accordeon from '../commun/Accordeon'
import Actions from '../commun/Actions'
import InfoBulle from '../commun/Infobulle'
import Onglets from '../commun/Onglets'
import Accordeon from '../sharedComponents/Accordeon'
import Actions from '../sharedComponents/Actions'
import InfoBulle from '../sharedComponents/Infobulle'
import Onglets from '../sharedComponents/Onglets'

type IndicateursClesProps = Readonly<{
nomEtablissement: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/Inventaire/Inventaire.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Equipement from './Equipement'
import { useInventaire } from './useInventaire'
import { InventairePresenter } from '../../presenters/inventairePresenter'
import { formaterEnIdentifiant, formaterLeNomEtablissement } from '../../presenters/sharedPresenter'
import AlerteSucces from '../commun/AlerteSucces'
import AlerteSucces from '../sharedComponents/AlerteSucces'

type InventaireProps = Readonly<{
nomEtablissement: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/Inventaire/Modele.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FormEvent, ReactElement } from 'react'

import { ModeleReducer } from './useEquipement'
import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

type ModeleProps = Readonly<{
id: string
Expand Down
4 changes: 2 additions & 2 deletions src/components/Inventaires/ActionSupprimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import React, { ReactElement } from 'react'

import { InventairePresenter } from '../../presenters/inventairesPresenter'
import SupprimerUnInventaire from '../commun/SupprimerUnInventaire'
import { useModale } from '../commun/useModale'
import SupprimerUnInventaire from '../sharedComponents/SupprimerUnInventaire'
import { useModale } from '../sharedComponents/useModale'

type InventairesProps = Readonly<{
inventaire: InventairePresenter
Expand Down
2 changes: 1 addition & 1 deletion src/components/Inventaires/InventairesLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ReactElement } from 'react'
import Inventaires from './Inventaires'
import InventairesVide from './InventairesVide'
import { InventairesPresenter } from '../../presenters/inventairesPresenter'
import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

type InventairesLayoutProps = Readonly<{
presenter: InventairesPresenter
Expand Down
6 changes: 3 additions & 3 deletions src/components/ListeEquipements/ListeEquipements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { ReactElement } from 'react'
import Equipement from './Equipement'
import { ListeEquipementsPresenter } from '../../presenters/listeEquipementsPresenter'
import { formaterEnIdentifiant } from '../../presenters/sharedPresenter'
import Accordeon from '../commun/Accordeon'
import Actions from '../commun/Actions'
import Onglets from '../commun/Onglets'
import Accordeon from '../sharedComponents/Accordeon'
import Actions from '../sharedComponents/Actions'
import Onglets from '../sharedComponents/Onglets'

type ListeEquipementsProps = Readonly<{
nomEtablissement: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ReactElement } from 'react'

import { useModifierLeNomInventaire } from './useModifierLeNomInventaire'
import { formaterLeNomEtablissement } from '../../presenters/sharedPresenter'
import InfoBulle from '../commun/Infobulle'
import InfoBulle from '../sharedComponents/Infobulle'

type ModifierLeNomInventaireProps = Readonly<{
nomEtablissement: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useRouter } from 'next/navigation'
import { FormEvent } from 'react'

import { modifierLeNomInventaireAction } from './action'
import { isLeNomInventaireExisteAction } from '../commun/action'
import { useModifierNouveauNomInventaire } from '../commun/useModifierNouveauNomInventaire'
import { isLeNomInventaireExisteAction } from '../sharedComponents/action'
import { useModifierNouveauNomInventaire } from '../sharedComponents/useModifierNouveauNomInventaire'

type UseModifierLeNomInventaire = Readonly<{
isDisabled: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { ReactElement } from 'react'

import SoumettreUnReferentiel from './SoumettreUnReferentiel'
import { useModifierUnReferentiel } from './useModifierUnReferentiel'
import AlerteErreur from '../commun/AlerteErreur'
import AlerteSucces from '../commun/AlerteSucces'
import AlerteErreur from '../sharedComponents/AlerteErreur'
import AlerteSucces from '../sharedComponents/AlerteSucces'

export default function ModifierUnReferentiel(): ReactElement {
const {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactElement } from 'react'

import Modale from '../commun/Modale'
import { useModale } from '../commun/useModale'
import Modale from '../sharedComponents/Modale'
import { useModale } from '../sharedComponents/useModale'

type ModaleModifierUnReferentielProps = Readonly<{
isDisabled: boolean
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { useRouter } from 'next/navigation'
import React, { ReactElement } from 'react'

import { supprimerInventaireAction } from '../commun/action'
import Modale from '../commun/Modale'
import { supprimerInventaireAction } from '../sharedComponents/action'
import Modale from '../sharedComponents/Modale'

type SupprimerUnInventaireProps = Readonly<{
fermerLaModale: () => void
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f4cbfbd

Please sign in to comment.