Skip to content

Commit

Permalink
[frontend] fix typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumejparis committed Sep 16, 2024
1 parent ece067d commit 0654bed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Props> = ({ addedUsersIds, teamId }) => {
const dispatch = useAppDispatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ interface Props {
handleClose: () => void
}

interface UserStoreExtended extends UserStore {
type UserStoreExtended = UserStore & {
user_enabled: boolean;
}
};

const TeamPlayers: React.FC<Props> = ({ teamId, handleClose }) => {
// Standard hooks
Expand Down
1 change: 1 addition & 0 deletions openbas-front/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"builder/dev/build",
"builder/prod/build",
"src/static/ext/*",
"vite.config.ts",
"__generated__"
],
"references": [
Expand Down

0 comments on commit 0654bed

Please sign in to comment.