Skip to content

Commit

Permalink
Fix: created interface file for new column props.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexappleget committed Oct 16, 2024
1 parent a3b6742 commit f31c3b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 9 additions & 0 deletions components/TableColumns/TableColumns.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) Gridiron Survivor.
// Licensed under the MIT License.

import { ILeague } from '@/api/apiFunctions.interface';

export interface IEntryWithLeague extends ILeague {
aliveEntries: number;
totalEntries: number;
}
7 changes: 1 addition & 6 deletions components/TableColumns/TableColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from '../TableDropDownMenu/TableDropDownMenu';
import { ILeague } from '@/api/apiFunctions.interface';
import { IEntryWithLeague } from './TableColumns.interface';

export type LeagueDetailsHeader = {
text: string;
Expand All @@ -22,11 +22,6 @@ export type LeagueDetailsHeader = {
text4: string;
};

export interface IEntryWithLeague extends ILeague {
totalEntries: number;
aliveEntries: number;
}

export type PlayersHeader = {
text: string;
text2: string;
Expand Down

0 comments on commit f31c3b9

Please sign in to comment.