Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebFront
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websystem
WebFront
Commits
a9c5635f
Commit
a9c5635f
authored
5 months ago
by
석찬 윤
Browse files
Options
Downloads
Patches
Plain Diff
fix: div 클릭이벤트 오류 해결
parent
ac692528
Branches
Branches containing commit
No related tags found
1 merge request
!56
fix: 친구 수락시 동기화 및 미팅페이지 상세보기 오류 해결
Pipeline
#11042
passed
5 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Card.jsx
+16
-13
16 additions, 13 deletions
src/components/Card.jsx
src/pages/MeetingPage.jsx
+4
-4
4 additions, 4 deletions
src/pages/MeetingPage.jsx
with
20 additions
and
17 deletions
src/components/Card.jsx
+
16
−
13
View file @
a9c5635f
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/MeetingPage.jsx
+
4
−
4
View file @
a9c5635f
...
...
@@ -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
(
"
번개 모임을 마감했습니다!
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment