Skip to content

Commit

Permalink
Moved dashboards pages -> components
Browse files Browse the repository at this point in the history
  • Loading branch information
lisaliuu committed Sep 18, 2023
1 parent 3fdca06 commit 17750b4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Button, Space, Tabs } from 'antd';
import { signOut, useSession } from 'next-auth/react';
import ScheduleTab from '../components/Organizer/ScheduleTab/ScheduleTab';
import JudgingTab from '../components/Organizer/JudgingTab/JudgingTab';
import ManageUsersTab from '../components/Organizer/ManageUsersTab/ManageUsersTab';
import PreAddUsersTab from '../components/Organizer/PreAddUsersTab/PreAddUsersTab';
import ApplicantsTab from '../components/Organizer/ApplicantsTab/ApplicantsTab';
import EventsTab from '../components/Organizer/EventsTab/EventsTab';
import ScheduleTab from './ScheduleTab/ScheduleTab';
import JudgingTab from './JudgingTab/JudgingTab';
import ManageUsersTab from './ManageUsersTab/ManageUsersTab';
import PreAddUsersTab from './PreAddUsersTab/PreAddUsersTab';
import ApplicantsTab from './ApplicantsTab/ApplicantsTab';
import EventsTab from './EventsTab/EventsTab';

export default function OrganizerDash() {
// Get session data
Expand Down
10 changes: 5 additions & 5 deletions pages/HackerDash.tsx → components/hacker/HackerDash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import {
UploadFile,
} from 'antd';
import useSWR from 'swr';
import TeamManager from '../components/hacker/TeamManager';
import TeamSetup from '../components/hacker/TeamSetup';
import { TeamProfile } from '../types/client';
import { ApplicationStatus, UserData, JudgingSessionData } from '../types/database';
import styles from '../styles/Form.module.css';
import TeamManager from './TeamManager';
import TeamSetup from './TeamSetup';
import { TeamProfile } from '../../types/client';
import { ApplicationStatus, UserData, JudgingSessionData } from '../../types/database';
import styles from '../../styles/Form.module.css';
import { signOut, useSession } from 'next-auth/react';
import moment from 'moment';
import TextArea from 'antd/lib/input/TextArea';
Expand Down
10 changes: 5 additions & 5 deletions pages/JudgeDash.tsx → components/judges/JudgeDash.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Button, Divider, notification, Skeleton } from 'antd';
import { Dispatch, SetStateAction, useEffect, useState } from 'react';
import useSWR, { useSWRConfig } from 'swr';
import JudgingForm from '../components/judges/JudgingForm';
import { JudgeSchedule } from '../components/judges/schedule';
import TeamSelect from '../components/judges/TeamSelect';
import { JudgingFormFields, ScheduleDisplay, TeamSelectData } from '../types/client';
import { JudgingSessionData, ResponseError, TeamData } from '../types/database';
import JudgingForm from './JudgingForm';
import { JudgeSchedule } from './schedule';
import TeamSelect from './TeamSelect';
import { JudgingFormFields, ScheduleDisplay, TeamSelectData } from '../../types/client';
import { JudgingSessionData, ResponseError, TeamData } from '../../types/database';
import { signOut, useSession } from 'next-auth/react';
import { ScopedMutator } from 'swr/dist/types';

Expand Down
6 changes: 3 additions & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { signIn, useSession } from 'next-auth/react';
import { useState } from 'react';
import SignIn from '../components/signIn';
import { ApplicationStatus } from '../types/database';
import HackerDash from './HackerDash';
import JudgeDash from './JudgeDash';
import OrganizerDash from './OrganizerDash';
import HackerDash from '../components/hacker/HackerDash';
import JudgeDash from '../components/judges/JudgeDash';
import OrganizerDash from '../components/Organizer/OrganizerDash';
import Head from 'next/head';

export default function Page() {
Expand Down

0 comments on commit 17750b4

Please sign in to comment.