-
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.
feat(cms): scinder la partie FAQ (#2051)
* feat(cms): scinder la FAQ du contexte CMS * feat(cms): clean type * feat(faq): retour review 1 * feat(faq): retour review 2 * feat(faq): deplacer les info necessaire dans infra * feat(faq): linter * feat(faq): ne pas passer de mapper au strapi service * feat(faq): refactor import relatif et accent mapper --------- Co-authored-by: Suxue LI <[email protected]>
- Loading branch information
1 parent
14d795e
commit 3fe053e
Showing
33 changed files
with
439 additions
and
264 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,11 @@ import { LinkStyledAsButtonWithIcon } from '~/client/components/ui/LinkStyledAsB | |
import useAnalytics from '~/client/hooks/useAnalytics'; | ||
import analytics from '~/pages/faq/index.analytics'; | ||
import styles from '~/pages/faq/index.module.scss'; | ||
import { Question } from '~/server/cms/domain/FAQ.type'; | ||
import { FAQ } from '~/server/faq/domain/FAQ'; | ||
import { dependencies } from '~/server/start'; | ||
|
||
type FaqPageProps = { | ||
listeDeQuestionRéponse: Array<Question> | ||
listeDeQuestionRéponse: Array<FAQ.Question> | ||
} | ||
|
||
const MAIL_TO = '[email protected]'; | ||
|
@@ -53,7 +53,7 @@ export default function FaqPage({ listeDeQuestionRéponse }: FaqPageProps) { | |
} | ||
|
||
export async function getStaticProps(): Promise<GetStaticPropsResult<FaqPageProps>> { | ||
const listeDeQuestionRéponse = await dependencies.cmsDependencies.listerQuestionsFAQ.handle(); | ||
const listeDeQuestionRéponse = await dependencies.faqDependencies.listerQuestionsFAQ.handle(); | ||
if (listeDeQuestionRéponse.instance === 'failure') { | ||
return { notFound: true }; | ||
} | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.