Skip to content

Commit

Permalink
match to dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielle254 committed Oct 5, 2024
1 parent 34fc69d commit 2dda998
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions app/(main)/league/[leagueId]/entry/all/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { LeagueSurvivors } from '@/components/LeagueSurvivors/LeagueSurvivors';
import { useDataStore } from '@/store/dataStore';
import GlobalSpinner from '@/components/GlobalSpinner/GlobalSpinner';
import Heading from '@/components/Heading/Heading';
import Link from 'next/link';
import React, { JSX, useEffect, useState } from 'react';
import LinkCustom from '@/components/LinkCustom/LinkCustom';
import { getNFLTeamLogo } from '@/utils/utils';
Expand Down Expand Up @@ -196,29 +195,6 @@ const Entry = ({
);
})}

<div className="flex flex-col gap-8 justify-center items-center mt-2 mb-2 w-full">
{!loadingData && entries.length < MAX_ENTRIES && (
<Button
icon={
<PlusCircle
className={cn('mr-2', addingEntry && 'hidden')}
/>
}
variant="outline"
onClick={() =>
addNewEntry({
name: `Entry ${entries.length + 1}`,
user: user.id,
league: leagueId,
})
}
data-testid="add-new-entry-button"
disabled={addingEntry}
>
{addingEntry ? <LoadingSpinner /> : 'Add New Entry'}
</Button>
)}
</div>
</section>
</div>
)}
Expand Down

0 comments on commit 2dda998

Please sign in to comment.