diff --git a/site/source/pages/statistiques/Stats.tsx b/site/source/pages/statistiques/Stats.tsx index 85b424b15..80d88e0f2 100644 --- a/site/source/pages/statistiques/Stats.tsx +++ b/site/source/pages/statistiques/Stats.tsx @@ -10,8 +10,8 @@ import PagesChart from '@/components/charts/PagesCharts' import { useScrollToHash } from '@/components/utils/markdown' import { Message } from '@/design-system' import InfoBulle from '@/design-system/InfoBulle' +import { Button } from '@/design-system/buttons' import { Emoji } from '@/design-system/emoji' -import { Radio, ToggleGroup } from '@/design-system/field' import { Item, Select } from '@/design-system/field/Select' import { Grid, Spacing } from '@/design-system/layout' import { H2, H3 } from '@/design-system/typography/heading' @@ -300,34 +300,51 @@ const StatsDetail = ({ stats }: StatsDetailProps) => {
- setPeriod(val as Period)} - defaultValue={period} + + Mode d'affichage : + + - - jours - - - mois - - + setPeriod('jours' as Period)} + > + Jours + + setPeriod('mois' as Period)} + > + Mois + + +
-

Visites

- - {visites.length ? ( - - ) : ( - Aucune donnée disponible. - )} +
+

Visites

+ {visites.length ? ( + + ) : ( + Aucune donnée disponible. + )} +
{slicedVisits.length > 0 && (

@@ -536,3 +553,20 @@ function SimulateursChoice(props: { ) } + +const ButtonContainer = styled.div` + display: flex; +` + +const StyledButton = styled(Button)` + &:first-child { + border-radius: 0.25rem 0 0 0.25rem; + } + &:nth-child(2) { + border-radius: 0 0.25rem 0.25rem 0; + } +` + +const StyledBody = styled(Body)` + margin-bottom: 0.25rem; +`