Skip to content

Commit

Permalink
chore: rename BreadCrumb component into Breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
QRuhier committed Jan 17, 2025
1 parent 8683da2 commit c6ca9de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ui/components/orchestrator/Breadcrumb/Breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { useTranslation } from '@/i18n'

import type { GoToPage, OverviewItem } from '../lunaticType'

type BreadCrumbProps = {
type BreadcrumbProps = {
sequence: OverviewItem | undefined
subSequence: OverviewItem | undefined
goToPage: GoToPage
}

export function BreadCrumb(props: BreadCrumbProps) {
export function Breadcrumb(props: BreadcrumbProps) {
const { sequence, subSequence, goToPage } = props
const { classes, cx } = useStyles()
const { t } = useTranslation('navigationMessage')
Expand Down
8 changes: 4 additions & 4 deletions src/ui/components/orchestrator/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { DYNAMIC_PUBLIC_URL } from '@/core/constants'
import { useTranslation } from '@/i18n'
import { SHORTCUT_MENU, SHORTCUT_QUIT } from '@/ui/constants'

import { BreadCrumb } from '../Breadcrumb/Breadcrumb'
import { Breadcrumb } from '../Breadcrumb/Breadcrumb'
import { Menu } from '../Menu/Menu'
import { ShortCut } from '../buttons/ShortCut/ShortCut'
import type { GoToPage, Overview, OverviewItem } from '../lunaticType'
Expand Down Expand Up @@ -61,6 +61,7 @@ export function Header(props: HeaderProps) {
<IconButton
className={classes.menuIcon}
onClick={() => handleDrawerToggle(!isDrawerOpen)}
aria-label="menu"
>
<AppsIcon />
<ShortCut
Expand All @@ -87,20 +88,19 @@ export function Header(props: HeaderProps) {
/>
</SwipeableDrawer>

<Button title={t('backToQuestionnaireStart')}>
<Button title={t('backToQuestionnaireStart')} onClick={goToFirstPage}>
<img
id="logo"
src={`${DYNAMIC_PUBLIC_URL}/assets/insee.png`}
alt="Logo de L'Insee"
className={classes.headerLogo}
onClick={goToFirstPage}
/>
</Button>
<Stack className={classes.headerTitle}>
<Typography className={classes.questionnaireTitle} variant="h1">
{questionnaireTitle}
</Typography>
<BreadCrumb
<Breadcrumb
sequence={currentSequence}
subSequence={currentSubSequence}
goToPage={goToPage}
Expand Down

0 comments on commit c6ca9de

Please sign in to comment.