Skip to content

Commit

Permalink
[fix]lintに伴う修正と閉じるボタンの復元
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubosaka committed Mar 29, 2024
1 parent 698c778 commit 170a69f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useRouter } from 'next/router';
import React, { FC, useState } from 'react';
import { RiCloseCircleLine } from 'react-icons/ri';
import DetailPage1 from './DetailPage1';
import DetailPage2 from './DetailPage2';
import { Modal } from '@components/common';
Expand Down Expand Up @@ -27,14 +28,11 @@ const DetailModal: FC<ModalProps> = (props) => {
};
const [pageNum, setPageNum] = useState<number>(1);

const formatDate = (date: string) => {
const datetime = date.replace('T', ' ');
const datetime2 = datetime.substring(0, datetime.length - 10);
return datetime2;
};

return (
<Modal className='md:h-6/12 md:mt-5 md:w-6/12'>
<div className='ml-auto w-fit'>
<RiCloseCircleLine size={'23px'} color={'gray'} onClick={onClose} />
</div>
{pageNum === 1 && (
<DetailPage1
setPageNum={setPageNum}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const DetailPage2: FC<ModalProps> = (props) => {
/>
</>
) : activityInformation.fileInformation.trim() === '' ? (
<p className='w-30 border-b border-primary-1'>   </p>
<p className='w-30 border-b border-primary-1'>____</p>
) : (
<p className='border-b border-primary-1'>
{activityInformation.fileInformation}
Expand Down

0 comments on commit 170a69f

Please sign in to comment.