Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
lint fixes
  • Loading branch information
lowtorola committed Sep 25, 2024
1 parent ab44995 commit f425648
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
6 changes: 1 addition & 5 deletions frontend2/src/api/loaders/teamProfileLoader.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import type { QueryClient } from "@tanstack/react-query";
import type { LoaderFunction } from "react-router-dom";
import { matchListFactory } from "../compete/competeFactories";
import { buildKey } from "../helpers";
import {
otherTeamInfoFactory,
searchTeamsFactory,
} from "../team/teamFactories";
import { otherTeamInfoFactory } from "../team/teamFactories";

// loader for other team's public profile pages
export const teamProfileLoader =
Expand Down
4 changes: 3 additions & 1 deletion frontend2/src/api/team/teamApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ export const searchTeams = async ({
* @param episodeId The current episode's ID.
* @param teamAvatarRequest The avatar file.
*/
export const teamAvatarUpload = async (teamAvatarRequest: TeamTAvatarCreateRequest): Promise<void> => {
export const teamAvatarUpload = async (
teamAvatarRequest: TeamTAvatarCreateRequest,
): Promise<void> => {
await API.teamTAvatarCreate(teamAvatarRequest);
};

Expand Down
1 change: 0 additions & 1 deletion frontend2/src/api/team/useTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
import type {
PaginatedTeamPublicList,
PatchedTeamPrivateRequest,
TeamTAvatarCreateRequest,
TeamCreate,
TeamJoinRequest,
TeamPrivate,
Expand Down
5 changes: 4 additions & 1 deletion frontend2/src/components/tables/scrimmaging/TeamsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ const TeamsTable: React.FC<TeamsTableProps> = ({
header: "Team",
key: "team",
value: (team) => (
<NavLink to={`/${episodeId}/team/${team.id}`} className="hover:underline">
<NavLink
to={`/${episodeId}/team/${team.id}`}
className="hover:underline"
>
{trimString(team.name, 13)}
</NavLink>
),
Expand Down
2 changes: 0 additions & 2 deletions frontend2/src/views/TeamProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useMemo } from "react";
import { useEpisodeId } from "contexts/EpisodeContext";
import { useParams } from "react-router-dom";
import { useQueryClient } from "@tanstack/react-query";
import { useTeam } from "api/team/useTeam";
import { isNil } from "lodash";
import SectionCard from "components/SectionCard";
Expand Down Expand Up @@ -57,7 +56,6 @@ const TeamProfile: React.FC = () => {
<img
className="h-24 w-24 rounded-full bg-gray-400 md:h-48 md:w-48"
src={team.data.profile?.avatar_url}
// TODO: open add avatar modal on click! With hover effect!
/>
<div className="mt-6 text-center text-xl font-semibold">
{team.data.name}
Expand Down

0 comments on commit f425648

Please sign in to comment.