diff --git a/site/source/components/ChiffreAffairesActivitéMixte.tsx b/site/source/components/ChiffreAffairesActivitéMixte.tsx index 6c529ef36..c63547881 100644 --- a/site/source/components/ChiffreAffairesActivitéMixte.tsx +++ b/site/source/components/ChiffreAffairesActivitéMixte.tsx @@ -143,6 +143,7 @@ function ActivitéMixte() { const StyledActivitéMixteContainer = styled.div` display: flex; align-items: center; + justify-content: flex-end; @media (min-width: ${({ theme }) => theme.breakpointsWidth.sm}) { text-align: right; @@ -150,7 +151,6 @@ const StyledActivitéMixteContainer = styled.div` position: relative; z-index: 2; display: flex; - justify-content: flex-end; align-items: center; } ` diff --git a/site/source/design-system/accordion/index.stories.tsx b/site/source/design-system/accordion/index.stories.tsx index ada9ade99..e6f191689 100644 --- a/site/source/design-system/accordion/index.stories.tsx +++ b/site/source/design-system/accordion/index.stories.tsx @@ -1,7 +1,7 @@ -import { ComponentStory, ComponentMeta } from '@storybook/react' import { Accordion } from '@/design-system' import { Body } from '@/design-system/typography/paragraphs' import { Item } from '@react-stately/collections' +import { ComponentMeta, ComponentStory } from '@storybook/react' // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export export default { diff --git a/site/source/design-system/accordion/index.tsx b/site/source/design-system/accordion/index.tsx index ad59c00a5..627b9fbf5 100644 --- a/site/source/design-system/accordion/index.tsx +++ b/site/source/design-system/accordion/index.tsx @@ -9,9 +9,7 @@ import useMeasure from 'react-use-measure' import styled, { css } from 'styled-components' import chevronImg from './chevron.svg' -export default function Accordion( - props: AriaAccordionProps -) { +export const Accordion = (props: AriaAccordionProps) => { const state = useTreeState(props) const ref = useRef(null) const { accordionProps } = useAccordion(props, state, ref) @@ -64,7 +62,10 @@ function AccordionItem(props: AccordionItemProps) {