From 91fbef9066b1ecda3f5dce017e40bc330e4e3b0a Mon Sep 17 00:00:00 2001 From: Quentin BEY Date: Wed, 14 May 2025 18:39:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8(front)=20rewrite=20the=20team=20ma?= =?UTF-8?q?in=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first rewrite I made was using `div` instead of the proper components. --- .../apps/desk/src/pages/teams/index.tsx | 84 +++++++++---------- 1 file changed, 38 insertions(+), 46 deletions(-) diff --git a/src/frontend/apps/desk/src/pages/teams/index.tsx b/src/frontend/apps/desk/src/pages/teams/index.tsx index 66f1c2a..ee5d394 100644 --- a/src/frontend/apps/desk/src/pages/teams/index.tsx +++ b/src/frontend/apps/desk/src/pages/teams/index.tsx @@ -3,6 +3,7 @@ import { useRouter as useNavigate } from 'next/navigation'; import React, { ReactElement } from 'react'; import { useTranslation } from 'react-i18next'; +import { Box, Text } from '@/components'; import { useAuthStore } from '@/core/auth'; import { useCunninghamTheme } from '@/cunningham'; import { TeamsListView } from '@/features/teams/team-management/components/TeamsListView'; @@ -27,41 +28,37 @@ const Page: NextPageWithLayout = () => { }; return ( -
-
+ -

{t('Teams')} -

+ -
-
+ { value={searchValue} onChange={handleInputChange} /> -
+ -
+ $css={` + background: ${colors['greyscale-200']}; + height: 32px; + width: 1px; + `} + > -
- -
+ {can_create ? (
)} -
-
+ + {!can_create && (

@@ -134,8 +126,8 @@ const Page: NextPageWithLayout = () => { )} -

- + + ); };