Skip to content

Commit

Permalink
feat:study-sub-vote
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Sep 5, 2024
1 parent 1ad7b1b commit bfbcaf4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/molecules/cards/ProfileCommentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export default function ProfileCommentCard({
</UserNameBadgeContainer>
<Flex alignItems="center" flex={1}>
<CommentText>{comment !== null ? comment : user.comment}</CommentText>
{/* {setMemo && (
{setMemo && (
<Button onClick={setMemo}>
<i className="fa-regular fa-pen-to-square fa-sm" />
</Button>
)} */}
)}
</Flex>
</UserInfoContainer>
<RightComponentContainer>{rightComponent}</RightComponentContainer>
Expand Down
7 changes: 4 additions & 3 deletions components/molecules/picker/PlaceSelectorSub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,21 @@ function PlaceSelectorSub({ places, selectPlaces, setSelectPlaces }: IPlaceSelec
const Layout = styled.div<{ isTwoPage: boolean }>`
position: relative;
height: 100%;
padding: 12px 20px;
padding: 12px 16px;
padding-top: 4px;
`;

const LeftArrow = styled.div`
padding: 8px;
position: absolute;
top: 38%;
left: -8px;
left: -12px;
`;
const RightArrow = styled.div`
padding: 8px;
position: absolute;
top: 38%;
right: -8px;
right: -12px;
`;

export default PlaceSelectorSub;
4 changes: 2 additions & 2 deletions components/services/studyVote/StudyVoteDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function StudyVoteDrawer({ setIsModal }: IStudyVoteDrawer) {
const { data: session } = useSession();
const { date, id } = useParams<{ date: string; id: string }>();
const location = PLACE_TO_LOCATION[id];

const toast = useToast();
const studyDateStatus = useRecoilValue(studyDateStatusState);
const myStudy = useRecoilValue(myStudyState);
Expand Down Expand Up @@ -75,7 +75,7 @@ export default function StudyVoteDrawer({ setIsModal }: IStudyVoteDrawer) {

const handleSuccess = async () => {
queryClient.invalidateQueries([STUDY_VOTE, date, location || session?.user.location]);

if (myPrevVotePoint) {
await getPoint({
message: "스터디 투표 취소",
Expand Down

0 comments on commit bfbcaf4

Please sign in to comment.