From efafd89c82cf4db27e5828580aa1efbd87b8ca89 Mon Sep 17 00:00:00 2001 From: Ludovic Delhomme Date: Wed, 10 Apr 2024 19:28:46 +0200 Subject: [PATCH] wip plugin admin --- .../admin/src/components/FlowCard.tsx | 1 - .../admin/src/pages/HomePage/index.tsx | 37 +++++++------------ 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/cms/src/plugins/betagouv/admin/src/components/FlowCard.tsx b/cms/src/plugins/betagouv/admin/src/components/FlowCard.tsx index 9c1a00556b..1edbbacfd6 100644 --- a/cms/src/plugins/betagouv/admin/src/components/FlowCard.tsx +++ b/cms/src/plugins/betagouv/admin/src/components/FlowCard.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { Box, Typography, Button } from '@strapi/design-system'; import getTrad from '../utils/getTrad'; import { useIntl } from "react-intl" diff --git a/cms/src/plugins/betagouv/admin/src/pages/HomePage/index.tsx b/cms/src/plugins/betagouv/admin/src/pages/HomePage/index.tsx index 404dfba736..d4400077f6 100644 --- a/cms/src/plugins/betagouv/admin/src/pages/HomePage/index.tsx +++ b/cms/src/plugins/betagouv/admin/src/pages/HomePage/index.tsx @@ -1,5 +1,4 @@ -import React from 'react'; -import { Box, Flex, GridLayout, Typography, Button } from '@strapi/design-system'; +import { Box, BaseHeaderLayout, GridLayout, Typography, Button } from '@strapi/design-system'; import getTrad from '../../utils/getTrad'; import { useIntl } from "react-intl" import { useFlowList } from '../../hooks/useFlowList'; @@ -10,27 +9,19 @@ const HomePage = () => { const [flows, isLoading] = useFlowList(); return ( - - - - {formatMessage({ id: getTrad('name') })} - - - { !isLoading && flows.map(f => )} - - - + <> + + + + + + + { !isLoading && flows.map((f,i) => )} + + ); };