From 0654bedf4476dbb7c8bf9ae0e6c1bd83d8c96282 Mon Sep 17 00:00:00 2001 From: Guillaume Paris Date: Mon, 16 Sep 2024 10:53:13 +0200 Subject: [PATCH] [frontend] fix typescript errors --- .../src/admin/components/components/teams/TeamAddPlayers.tsx | 4 ++-- .../src/admin/components/components/teams/TeamPlayers.tsx | 4 ++-- openbas-front/tsconfig.json | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/openbas-front/src/admin/components/components/teams/TeamAddPlayers.tsx b/openbas-front/src/admin/components/components/teams/TeamAddPlayers.tsx index 0eae5cb190..5ced78960f 100644 --- a/openbas-front/src/admin/components/components/teams/TeamAddPlayers.tsx +++ b/openbas-front/src/admin/components/components/teams/TeamAddPlayers.tsx @@ -42,10 +42,10 @@ interface Props { teamId: Team['team_id'] } -interface UserStoreExtended extends UserStore { +type UserStoreExtended = UserStore & { organization_name: Organization['organization_name']; organization_description: Organization['organization_description'] -} +}; const TeamAddPlayers: React.FC = ({ addedUsersIds, teamId }) => { const dispatch = useAppDispatch(); diff --git a/openbas-front/src/admin/components/components/teams/TeamPlayers.tsx b/openbas-front/src/admin/components/components/teams/TeamPlayers.tsx index ba493f4890..0732c97490 100644 --- a/openbas-front/src/admin/components/components/teams/TeamPlayers.tsx +++ b/openbas-front/src/admin/components/components/teams/TeamPlayers.tsx @@ -156,9 +156,9 @@ interface Props { handleClose: () => void } -interface UserStoreExtended extends UserStore { +type UserStoreExtended = UserStore & { user_enabled: boolean; -} +}; const TeamPlayers: React.FC = ({ teamId, handleClose }) => { // Standard hooks diff --git a/openbas-front/tsconfig.json b/openbas-front/tsconfig.json index 6d5d67cd27..9b3e559f98 100644 --- a/openbas-front/tsconfig.json +++ b/openbas-front/tsconfig.json @@ -28,6 +28,7 @@ "builder/dev/build", "builder/prod/build", "src/static/ext/*", + "vite.config.ts", "__generated__" ], "references": [