Skip to content

Commit

Permalink
Fix: Fixed testing. Tests were failing because there were duplicate i…
Browse files Browse the repository at this point in the history
…mports. Alphabetized imports in file as well.
  • Loading branch information
alexappleget committed Oct 7, 2024
1 parent 41a72a5 commit b97abe0
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions app/(main)/league/[leagueId]/entry/[entryId]/week/Week.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,39 @@
// Licensed under the MIT License.

'use client';
import React, { JSX, useEffect, useState } from 'react';
import Alert from '@/components/AlertNotification/AlertNotification';
import { AlertVariants } from '@/components/AlertNotification/Alerts.enum';
import { ChevronLeft } from 'lucide-react';
import { Control, FormProvider, useForm } from 'react-hook-form';
import { cn, getNFLTeamLogo } from '@/utils/utils';
import {
FormField,
FormItem,
FormControl,
FormMessage,
} from '@/components/Form/Form';
import { FormProvider, Control, useForm } from 'react-hook-form';
import { z } from 'zod';
import { IWeekProps } from './Week.interface';
import { zodResolver } from '@hookform/resolvers/zod';
import { useDataStore } from '@/store/dataStore';
import { ISchedule } from './WeekTeams.interface';
import {
getAllWeeklyPicks,
getCurrentUserEntries,
getCurrentLeague,
getGameWeek,
} from '@/api/apiFunctions';
import { ILeague } from '@/api/apiFunctions.interface';
import WeekTeams from './WeekTeams';
import GlobalSpinner from '@/components/GlobalSpinner/GlobalSpinner';
import { onWeeklyPickChange } from './WeekHelper';
import Alert from '@/components/AlertNotification/AlertNotification';
import { AlertVariants } from '@/components/AlertNotification/Alerts.enum';
import { NFLTeams } from '@/api/apiFunctions.enum';
import { useAuthContext } from '@/context/AuthContextProvider';
import { cn, getNFLTeamLogo } from '@/utils/utils';
import { ILeague } from '@/api/apiFunctions.interface';
import Image from 'next/image';
import { useRouter } from 'next/navigation';
import { ISchedule } from './WeekTeams.interface';
import { IWeekProps } from './Week.interface';
import LinkCustom from '@/components/LinkCustom/LinkCustom';
import { ChevronLeft } from 'lucide-react';
import toast from 'react-hot-toast';
import { NFLTeams } from '@/api/apiFunctions.enum';
import { onWeeklyPickChange } from './WeekHelper';
import React, { JSX, useEffect, useState } from 'react';
import toast from 'react-hot-toast';
import { useAuthContext } from '@/context/AuthContextProvider';
import { useDataStore } from '@/store/dataStore';
import { useRouter } from 'next/navigation';
import WeekTeams from './WeekTeams';
import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';

/**
* Renders the weekly picks page.
Expand Down

0 comments on commit b97abe0

Please sign in to comment.