Skip to content
Snippets Groups Projects
Commit a9c5635f authored by 석찬 윤's avatar 석찬 윤
Browse files

fix: div 클릭이벤트 오류 해결

parent ac692528
Branches
No related tags found
1 merge request!56fix: 친구 수락시 동기화 및 미팅페이지 상세보기 오류 해결
Pipeline #11042 passed
......@@ -4,19 +4,22 @@ import React from "react";
import Button from "./Button";
import Label from "./Label";
import { convertIndexToTime } from "../utils/time";
const cardVariants = cva("w-full rounded-xl shadow-lg p-4 overflow-hidden", {
variants: {
theme: {
black: "bg-black text-white",
white: "bg-white text-black",
pink: "bg-gradient-pink text-white",
purple: "bg-gradient-purple text-white",
indigo: "bg-gradient-indigo text-white",
mix: "bg-gradient-mix text-white",
gray: "bg-gray-300 text-gray-500",
const cardVariants = cva(
"w-full rounded-xl shadow-lg p-4 overflow-hidden cursor-pointer",
{
variants: {
theme: {
black: "bg-black text-white",
white: "bg-white text-black",
pink: "bg-gradient-pink text-white",
purple: "bg-gradient-purple text-white",
indigo: "bg-gradient-indigo text-white",
mix: "bg-gradient-mix text-white",
gray: "bg-gray-300 text-gray-500",
},
},
},
});
}
);
export default function Card({
meeting,
......@@ -52,7 +55,7 @@ export default function Card({
const deadlineTime = convertIndexToTime(time_idx_deadline);
return (
<div className={cn(variantClass)} onClick={onClick}>
<div className={cn(variantClass)} onClick={onClick} role="button">
<h3 className="mb-2 text-xl font-bold">{title}</h3>
<Label size="sm" theme="black">
장소: {location}
......
......@@ -106,7 +106,7 @@ const MeetingPage = () => {
};
const handleJoinButtonClick = async (e, meetingId) => {
// e.stopPropagation();
e.stopPropagation();
try {
await joinMeeting(meetingId);
alert("번개 모임에 성공적으로 참가했습니다!");
......@@ -137,7 +137,7 @@ const MeetingPage = () => {
};
const handleDeleteButtonClick = async (e, meetingId) => {
// e.stopPropagation();
e.stopPropagation();
try {
await deleteMeeting(meetingId);
alert("번개 모임을 삭제했습니다!");
......@@ -157,7 +157,7 @@ const MeetingPage = () => {
};
const handleLeaveButtonClick = async (e, meetingId) => {
// e.stopPropagation();
e.stopPropagation();
try {
await leaveMeeting(meetingId);
alert("번개 모임을 나갔습니다!");
......@@ -177,7 +177,7 @@ const MeetingPage = () => {
};
const handleCloseButtonClick = async (e, meetingId) => {
// e.stopPropagation();
e.stopPropagation();
try {
await closeMeeting(meetingId);
alert("번개 모임을 마감했습니다!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment