Skip to content

Commit

Permalink
[frontend] fix ts errors
Browse files Browse the repository at this point in the history
Signed-off-by: Marine LM <[email protected]>
  • Loading branch information
MarineLeM committed Jan 13, 2025
1 parent 73df845 commit e58a275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Transition from '../../../../components/common/Transition';
import { useFormatter } from '../../../../components/i18n';
import ItemTags from '../../../../components/ItemTags';
import type { Theme } from '../../../../components/Theme';
import type { TeamOutput } from '../../../../utils/api-types';
import type { Team, TeamOutput } from '../../../../utils/api-types';
import CreateTeam from '../../components/teams/CreateTeam';
import { PermissionsContext, TeamContext } from '../Context';

Expand Down Expand Up @@ -146,8 +146,8 @@ const InjectAddTeams: FunctionComponent<Props> = ({
<CreateTeam
inline
onCreate={(team) => {
setTeamValues([...teamValues, team]);
setSelectedTeamValues([...selectedTeamValues, team]);
setTeamValues([...teamValues, team as TeamOutput]);
setSelectedTeamValues([...selectedTeamValues, team as TeamOutput]);
}}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const UpdateTeams: React.FC<Props> = ({
buttonComponent={(
<CreateTeam
inline
onCreate={team => setSelectedTeamValues([...selectedTeamValues, team])}
onCreate={team => setSelectedTeamValues([...selectedTeamValues, team as TeamOutput])}
/>
)}
/>
Expand Down

0 comments on commit e58a275

Please sign in to comment.