Skip to content

Commit

Permalink
Fix: removed isLockedOut prop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexappleget committed Sep 30, 2024
1 parent a7d2a11 commit 86cacb5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion app/(main)/league/[leagueId]/entry/all/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ const Entry = ({
<LeagueEntries
entryName={entry.name}
isEliminated={entry.eliminated}
isLockedOutProp={false}
isPickSet={isPickSet}
key={entry.$id}
linkUrl={linkUrl}
Expand Down
1 change: 0 additions & 1 deletion components/LeagueEntries/LeagueEntries.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export interface ILeagueEntriesProps {
linkUrl: string;
isEliminated?: boolean;
isPickSet?: boolean;
isLockedOutProp: boolean;
userPickHistory: string[];
selectedTeamLogo?: string;
}
3 changes: 1 addition & 2 deletions components/LeagueEntries/LeagueEntries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ const LeagueEntries = ({
isEliminated = false,
isPickSet = false,
linkUrl,
isLockedOutProp = false,
userPickHistory,
selectedTeamLogo = '',
}: ILeagueEntriesProps): JSX.Element => {
const [isLockedOut, setLockedOut] = useState<boolean>(isLockedOutProp);
const [isLockedOut, setLockedOut] = useState<boolean>(false);

useEffect(() => {
/**
Expand Down

0 comments on commit 86cacb5

Please sign in to comment.