Skip to content

Commit

Permalink
chore: 파일이동에 따른 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Aug 16, 2024
1 parent 74d5578 commit 69ff3bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/pages/EventPage/AdminPage/AdminPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {useEffect, useState} from 'react';
import {Title, FixedButton, ListButton} from 'haengdong-design';
import {useOutletContext} from 'react-router-dom';
import useAuth from '@hooks/useAuth';

import StepList from '@components/StepList/StepList';
import {ModalBasedOnMemberCount} from '@components/Modal/index';
Expand All @@ -10,19 +9,20 @@ import {useStepList} from '@hooks/useStepList/useStepList';
import {EventPageContextProps} from '../EventPageLayout';

import {receiptStyle, titleAndListButtonContainerStyle} from './AdminPage.style';

Check failure on line 11 in client/src/pages/EventPage/AdminPage/AdminPage.tsx

View workflow job for this annotation

GitHub Actions / test

There should be at least one empty line between import groups
import useAuth from '@hooks/useAuth/useAuth';

Check failure on line 12 in client/src/pages/EventPage/AdminPage/AdminPage.tsx

View workflow job for this annotation

GitHub Actions / test

`@hooks/useAuth/useAuth` import should occur before import of `../EventPageLayout`

const AdminPage = () => {
const {eventId, eventName} = useOutletContext<EventPageContextProps>();
const {eventName} = useOutletContext<EventPageContextProps>();

const [isOpenFixedButtonBottomSheet, setIsOpenFixedBottomBottomSheet] = useState(false);
const [isOpenAllMemberListButton, setIsOpenAllMemberListButton] = useState(false);

const {getTotalPrice, allMemberList} = useStepList();
const {postAuthentication} = useAuth();
const {checkAuthentication} = useAuth();

useEffect(() => {
const postAuth = async () => {
await postAuthentication({eventId: eventId});
await checkAuthentication();
};

postAuth();
Expand Down

0 comments on commit 69ff3bc

Please sign in to comment.