Skip to content

Commit

Permalink
fix: prettier, lint 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
amaran-th committed Aug 9, 2024
1 parent c4de3ec commit 971595b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const MilestoneSection = () => {
/>
)}
{selectedInfoType === MilestoneInfoType.HISTORY && (
<MilestoneHistoryTable searchFilterPeriod={searchFilterPeriod} page={0} size={5} />
<MilestoneHistoryTable searchFilterPeriod={searchFilterPeriod} pageNumber={0} pageSize={5} />
)}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import { useState } from 'react';

import { MilestoneGroup, milestoneGroups } from '@/data/milestone';
import { useAppSelector } from '@/lib/hooks/redux';
import { useMilestoneScoresOfStudentQuery } from '@/lib/hooks/useApi';
import { compareByIdAsc } from '@/lib/utils/utils';
import { Period } from '@/types/common';

import { GroupButton } from './styled';
import MilestoneRowBarTable from '../../../components/MilestoneRowBarTable';
import { useAppSelector } from '@/lib/hooks/redux';

const MilestoneDetail = ({ startDate, endDate }: Period) => {
const auth = useAppSelector((state) => state.auth).value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* eslint-disable jsx-a11y/control-has-associated-label */
/* eslint-disable max-len */
import MilestoneGroupLabel from '@/components/MilestoneGroupLabel';
import { MilestoneGroup, MilestoneHistoryStatus } from '@/data/milestone';
import { MilestoneHistoryStatus } from '@/data/milestone';
import { useAppSelector } from '@/lib/hooks/redux';
import { useMilestoneHistoriesOfStudentQuery } from '@/lib/hooks/useApi';
import { convertMilestoneGroup } from '@/lib/utils/utils';
import { Period } from '@/types/common';
import { MilestoneHistorySortCriteria, SortDirection } from '@/types/milestone';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { useMemo } from 'react';
import MilestoneChart from '@/components/MilestoneChart';
import MilestoneTable from '@/components/MilestoneTable';
import { initialMilestoneOverview } from '@/data/milestone';
import { useAppSelector } from '@/lib/hooks/redux';
import { useMilestoneScoresOfStudentQuery } from '@/lib/hooks/useApi';
import { Period } from '@/types/common';
import { MilestoneOverviewScore } from '@/types/milestone';

import { MilestoneWrapper } from './styled';
import MilestoneDetail from '../MilestoneDetail';
import { useAppSelector } from '@/lib/hooks/redux';

interface MilestoneOverviewProps {
searchFilterPeriod: Period;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/(withSidebar)/my-page/milestone/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Page = () => {
<div style={{ borderBottom: `1px dotted ${COLOR.border}`, margin: '30px 0px' }} />
<SubTitle>획득 내역</SubTitle>
{/* TODO 제대로 페이지네이션 처리 하기 */}
<MilestoneHistoryTable searchFilterPeriod={searchFilterPeriod} page={0} size={10} />
<MilestoneHistoryTable searchFilterPeriod={searchFilterPeriod} pageNumber={0} pageSize={10} />
</Content>
);
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/admin/milestone/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const validationSchema = Yup.object().shape({
'fileFormat',
'Excel 파일(.xlsx)만 업로드 가능합니다.',
(value) =>
value &&
value instanceof File &&
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.ms-excel'].includes(
value.type,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const InputUserInfo = () => {
signIn({
token: 'token',
username: 'name',
uid: '1',
uid: 202055558,
isModerator: true,
}),
);
Expand Down

0 comments on commit 971595b

Please sign in to comment.