Skip to content

Commit

Permalink
upgradi ui/ux
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Oct 24, 2024
1 parent 8a9d89d commit c2a34d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/organisms/drawer/BottomFlexDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function BottomFlexDrawer({
setDrawerHeight(currentHeightRef.current); // 스와이프가 임계값보다 짧으면 원래 높이로 복원
}
};

console.log(25, isHideBottom ? "true" : "false", zIndex);
return (
<>
{isOverlay && <ScreenOverlay zIndex={zIndex} onClick={() => setIsModal(false)} />}
Expand Down Expand Up @@ -153,7 +153,7 @@ const Layout = styled.div<{
border-top-right-radius: 20px;
background-color: white;
z-index: ${(props) => props.zindex || (props.ishide ? 700 : 500)};
z-index: ${(props) => props.zindex || (props.ishide==="true" ? 700 : 500)};
padding: 0 20px;
padding-bottom: ${(props) => props.isdrawerup === "false" && "12px"};
padding-top: 0;
Expand Down
4 changes: 2 additions & 2 deletions pageTemplates/vote/StudyControlButton.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Box, Button } from "@chakra-ui/react";
import dayjs from "dayjs";
import { useSession } from "next-auth/react";
import Link from "next/link";
import { useSearchParams } from "next/navigation";
import { useSession } from "next-auth/react";
import { useState } from "react";
import { useRecoilValue } from "recoil";

Expand Down Expand Up @@ -51,7 +51,7 @@ function StudyControlButton({ setIsVoteDrawer, setIsDrawerUp, date }: StudyContr
fontWeight={700}
color="white"
position="fixed"
zIndex="800"
zIndex="400"
borderRadius="20px"
lineHeight="24px"
bottom={`calc(var(--bottom-nav-height) + ${DRAWER_MIN_HEIGHT + iPhoneNotchSize() + 12}px)`}
Expand Down
5 changes: 2 additions & 3 deletions pages/studyPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from "@chakra-ui/react";
import dayjs from "dayjs";
import { useRouter, useSearchParams } from "next/navigation";
import { useSession } from "next-auth/react";
import { useRouter, useSearchParams } from "next/navigation";
import { useEffect, useRef, useState } from "react";
import { useRecoilState } from "recoil";

Expand Down Expand Up @@ -79,7 +79,7 @@ export default function StudyPage() {
const [isVoteDrawerFirst, setIsVoteDrawerFirst] = useState(true);

const [myStudyParticipation, setMyStudyParticipation] = useRecoilState(myStudyParticipationState);
const [isDrawerUp, setIsDrawerUp] = useState(myStudyParticipation ? false : true);
const [isDrawerUp, setIsDrawerUp] = useState(false);

const { data: userInfo } = useUserInfoQuery();
const { data: studyVoteData } = useStudyVoteQuery(date, locationValue, {
Expand Down Expand Up @@ -122,7 +122,6 @@ export default function StudyPage() {
const findMyStudyParticipation = getMyStudyParticipation(studyVoteData, session.user.uid);
setMyStudyParticipation(findMyStudyParticipation);
if (findMyStudyParticipation) {
setIsDrawerUp(false);
const changeLocation = getLocationByCoordinates(
findMyStudyParticipation.place.latitude,
findMyStudyParticipation.place.longitude,
Expand Down

0 comments on commit c2a34d5

Please sign in to comment.