Skip to content

Commit

Permalink
positioning modal
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Jun 9, 2024
1 parent 7e41668 commit 5c0944e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modals/study/StudyAttendCheckModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable */

import { Textarea } from "@chakra-ui/react";
import dayjs from "dayjs";
import { useSession } from "next-auth/react";
import { useParams, useSearchParams } from "next/navigation";
Expand All @@ -27,6 +26,7 @@ import { getRandomAlphabet } from "../../libs/userEventLibs/collection";
import { myStudyState } from "../../recoils/studyRecoils";
import { transferAlphabetState } from "../../recoils/transferRecoils";

import Textarea from "../../components/atoms/Textarea";
import { STUDY_ATTEND_MEMBERS } from "../../constants/keys/localStorage";
import { PLACE_TO_LOCATION } from "../../constants/serviceConstants/studyConstants/studyLocationConstants";
import { ModalSubtitle } from "../../styles/layout/modal";
Expand Down Expand Up @@ -156,15 +156,16 @@ function StudyAttendCheckModal({ setIsModal }: IStudyAttendCheckModal) {
isFull: true,
};


const [isFocus, setIsFocus] = useState(false);

return (
<>
<ModalLayout
title="출석 체크"
footerOptions={footerOptions}
setIsModal={setIsModal}
initialRef={initialRef}
isInputFocus={isFocus}
>
<ModalSubtitle>
도착하셨나요? <br />
Expand All @@ -176,7 +177,7 @@ function StudyAttendCheckModal({ setIsModal }: IStudyAttendCheckModal) {
placeholder="ex. 입구 오른쪽 계단 아래 초록색 후드티"
onChange={(e) => setValue(e.target.value)}
value={value}
ref={initialRef}
setIsFocus={setIsFocus}
/>
) : (
<ImageUploadInput setImageUrl={setImageUrl} />
Expand Down

0 comments on commit 5c0944e

Please sign in to comment.