Skip to content

Commit

Permalink
feat: resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
WONYOUNG-HC committed Oct 31, 2024
1 parent 6ade9d5 commit 482e229
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
5 changes: 3 additions & 2 deletions src/components/CotatoDropBox.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useEffect, useRef, useState } from 'react';
import { styled, useTheme } from 'styled-components';
import { ReactComponent as CheckIcon } from '@assets/check_icon_dotted.svg';
import { CotatoGenerationInfoResponse, CotatoSessionListResponse } from 'cotato-openapi-clients';
import drop_box_background_blue from '@assets/drop_box_background_blue.svg';
import drop_box_background_yellow from '@assets/drop_box_background_yellow.svg';
Expand Down Expand Up @@ -175,7 +174,9 @@ const CotatoDropBox = <T extends CotatoDropBoxType>({
className={item === selectedItem ? 'selected' : ''}
onClick={() => handleItemClick(item)}
>
{item === selectedItem && <StyledCheckIcon />}
{item === selectedItem && (
<StyledCheckIcon icon="check" color={theme.colors.sub3[40]} />
)}
{StringFormatter(item)}
</li>
))}
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Attendance/Report/AttendanceReportTable.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useGeneration } from '@/hooks/useGeneration';
// import { useGeneration } from '@/hooks/useGeneration';
import useGetAttendances from '@/hooks/useGetAttendances';
import { Table, TableBody, TableCell, TableRow } from '@mui/material';
import React, { useEffect } from 'react';
import { useAttendancesAttendanceIdRecordsGet } from '../hooks/useAttendancesAttendanceIdRecordsGet';
import { useSession } from '@/hooks/useSession';
// import { useSession } from '@/hooks/useSession';
import { useBreakpoints } from '@/hooks/useBreakpoints';
import AttedanceTableLayout from './components/AttedanceTableLayout';
import { getCurrentStatistic } from '../utils/util';
Expand All @@ -28,13 +28,13 @@ const AttendanceReportTable = () => {
const search = searchParams.get('search') || '';

//
const { currentGeneration } = useGeneration();
// const { currentGeneration } = useGeneration();

const { generationId } = useParams();
const { sessionId } = useParams();

// TODO: need to get the latest session by params
const { sessions } = useSession({ generationId: currentGeneration?.generationId });
// const { sessions } = useSession({ generationId: currentGeneration?.generationId });

//
// const { currentAttendance } = useGetAttendances({
Expand Down
3 changes: 0 additions & 3 deletions src/pages/CS/CSHome.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React, { useCallback, useEffect, useState } from 'react';
import { styled } from 'styled-components';
import CSContent from '@pages/CS/CSContent';
import { ReactComponent as SettingIcon } from '@assets/setting_icon.svg';
import { ReactComponent as AddIcon } from '@assets/add_icon.svg';
import CotatoDropBox from '@components/CotatoDropBox';
import CSModal from '@pages/CS/CSModal';
import { IEducation } from '@/typing/db';
Expand All @@ -11,7 +9,6 @@ import { useNavigate, useParams } from 'react-router-dom';
import { CotatoGenerationInfoResponse } from 'cotato-openapi-clients';
import { useGeneration } from '@/hooks/useGeneration';
import useUser from '@/hooks/useUser';
import GenerationDropBox from '@components/GenerationDropBox';
import CotatoIcon from '@components/CotatoIcon';
import { IconButton } from '@mui/material';

Expand Down

0 comments on commit 482e229

Please sign in to comment.