diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index c6f76a42..81915174 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -29,6 +29,7 @@ import type { SuccessResponseDTO, TeamDTO, TeamResponseDTO, + TeamUpdateDTO, UserDTO, UserListDto, } from "./types/dto"; @@ -272,7 +273,7 @@ export class ApiClient { * @param team.teamImg The team's image * @param team.owner The team's owner */ - public async updateTeam(team: TeamDTO): Promise { + public async updateTeam(team: TeamUpdateDTO): Promise { await this.put( "/application/team", team, @@ -314,7 +315,6 @@ export class ApiClient { ): Promise { await this.delete( `/application/team/${teamId}/members/${userId}`, - {} as never, ); } diff --git a/frontend/src/components/base/stack-with-border.tsx b/frontend/src/components/base/stack-with-border.tsx index 6224a3a3..befbdd72 100644 --- a/frontend/src/components/base/stack-with-border.tsx +++ b/frontend/src/components/base/stack-with-border.tsx @@ -1,13 +1,18 @@ import * as React from "react"; import { Stack, Tooltip } from "@mui/material"; -// TODO types. text and tooltip are optional +interface StackWithBorderProps { + text?: string; + tooltip?: string; + children?: React.ReactNode; +} + /** * I typically use this to display some text and a few buttons, * with multiple of this on top of each other, like a table. * Maybe these components should use tables instead, idk. It looks nice. */ -export const StackWithBorder = ({ text, children, tooltip }) => { +export const StackWithBorder = ({ text, children, tooltip }: StackWithBorderProps) => { return (
void; +} + const TeamMemberRequest = ({ user, updateTeamInProgress, acceptUserToTeam, -}) => { +}: TeamMemberRequestProps) => { return (