Skip to content

Commit

Permalink
Merge pull request #368 from TripInfoWeb/dev_gathering
Browse files Browse the repository at this point in the history
Dev gathering
  • Loading branch information
ssssksss authored Sep 22, 2024
2 parents 4a47992 + bb2a201 commit c49be36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const GatheringParticipantsFilterModal = (
return (
<div
className={
"relative h-full max-h-[38rem] w-[calc(100vw-1rem)] max-w-[40rem] overflow-scroll rounded-2xl bg-white p-[2.75rem] scrollbar-hide"
"relative h-full max-h-[40rem] w-[calc(100vw-1rem)] max-w-[40rem] overflow-scroll rounded-2xl bg-white p-[2.75rem] scrollbar-hide"
}
>
<button
Expand Down Expand Up @@ -290,7 +290,7 @@ const GatheringParticipantsFilterModal = (
</section>
<div className={"flex w-full justify-center gap-[1rem] pt-[2rem]"}>
<button
className={`h-[3rem] min-w-[8rem] rounded-[4rem] bg-main px-[1rem] py-[.5rem] text-white disabled:bg-gray1`}
className={`h-[3rem] max-w-[18.625rem] w-full rounded-[4rem] bg-main px-[1rem] py-[.5rem] text-white disabled:bg-gray1`}
disabled={
!sex ||
(startAge || 0) < 20 ||
Expand Down
14 changes: 7 additions & 7 deletions src/components/gathering/read/modal/GatheringFilterModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const GatheringFilterModal = ({ closeModal }: IGatheringFilterModalProps) => {
<button
key={i.id}
onClick={() => setLocation(i.id)}
className={`${location == i.id ? "bg-main text-white" : "text-gray1"} flex items-center rounded-[4rem] px-4 py-2 outline outline-[1px] outline-offset-[-1px] outline-[#E9EBED]`}
className={`${location == i.id ? "bg-main text-white outline-0" : "text-gray1 outline outline-[1px] outline-offset-[-1px] outline-[#E9EBED]"} flex items-center rounded-[4rem] px-4 py-2`}
>
{i.name}
</button>
Expand Down Expand Up @@ -244,13 +244,13 @@ const GatheringFilterModal = ({ closeModal }: IGatheringFilterModalProps) => {
_endAge: i[1].endAge,
})
}
className={`${directInput == false && (startAge || 0) <= i[1].startAge && (endAge || 0) >= i[1].endAge && "bg-main text-white"} flex flex-shrink-0 items-center rounded-[4rem] px-4 py-2 text-gray1 outline outline-[1px] outline-offset-[-1px] outline-[#E9EBED] hover:bg-main hover:text-white`}
className={`${directInput == false && (startAge || 0) <= i[1].startAge && (endAge || 0) >= i[1].endAge ? "bg-main text-white outline-0" : "outline outline-[1px] outline-offset-[-1px] outline-[#E9EBED]"} flex flex-shrink-0 items-center rounded-[4rem] px-4 py-2 text-gray1 hover:bg-main hover:text-white`}
>
{i[0]}
</button>
))}
<button
className={`${directInput && "bg-main text-white"} rounded-[4rem] px-4 py-2 text-gray1 outline outline-[1px] outline-offset-[-1px] outline-[#E9EBED] hover:bg-main hover:text-white`}
className={`${directInput ? "bg-main text-white outline-0" : "outline outline-[1px] outline-offset-[-1px] outline-[#E9EBED]"} rounded-[4rem] px-4 py-2 text-gray1 hover:bg-main hover:text-white`}
onClick={() => setDirectInput(true)}
>
직접 입력
Expand Down Expand Up @@ -465,20 +465,20 @@ const GatheringFilterModal = ({ closeModal }: IGatheringFilterModalProps) => {
</div>
<div className={"flex w-full justify-center gap-[1rem] pt-[2rem]"}>
<button
onClick={() => submitApplyFilter()}
onClick={() => initFilterOptionHandler()}
className={
"h-[3rem] min-w-[8rem] rounded-[4rem] bg-main px-[1rem] py-[.5rem] text-white"
}
>
적용하기
설정 초기화
</button>
<button
onClick={() => initFilterOptionHandler()}
onClick={() => submitApplyFilter()}
className={
"h-[3rem] min-w-[8rem] rounded-[4rem] bg-main px-[1rem] py-[.5rem] text-white"
}
>
설정 초기화
적용하기
</button>
</div>
</div>
Expand Down

0 comments on commit c49be36

Please sign in to comment.