@@ -23,8 +23,7 @@ const events = [
23
23
{ title : 'Meeting' , start : '2024-05-08' } ,
24
24
] ;
25
25
26
- export function Calendar ( ) {
27
-
26
+ export default function Calendar ( ) {
28
27
const [ calendarHeight , setCalendarHeight ] = useState < string | number > ( 'auto' ) ;
29
28
const calendarRef = useRef < FullCalendar | null > ( null ) ;
30
29
const [ selectedEvents , setSelectedEvents ] = useState < Event [ ] > ( [ ] ) ;
@@ -154,7 +153,7 @@ export function Calendar() {
154
153
< div className = "mt-10" > { selectedDate && < EventCards events = { selectedEvents } date = { selectedDate } /> } </ div >
155
154
</ div >
156
155
) ;
157
- } ;
156
+ }
158
157
159
158
interface EventInfo {
160
159
timeText : string ;
@@ -174,7 +173,6 @@ function renderEventContent(eventInfo: EventInfo) {
174
173
) ;
175
174
}
176
175
177
-
178
176
function EventCards ( { events, date } : EventCardsProps ) {
179
177
const [ menuOpen , setMenuOpen ] = useState ( - 1 ) ;
180
178
@@ -208,6 +206,7 @@ function EventCards({ events, date }: EventCardsProps) {
208
206
< div className = "mb-1 h-1 w-1 rounded-full bg-[#429400]" > </ div >
209
207
< div className = "h-1 w-1 rounded-full bg-[#429400]" > </ div >
210
208
</ div >
209
+ { /* 메뉴 */ }
211
210
{ menuOpen === index && (
212
211
< div className = "absolute right-0 top-10 z-10 rounded-lg bg-white shadow-md" >
213
212
< ul >
@@ -222,4 +221,3 @@ function EventCards({ events, date }: EventCardsProps) {
222
221
</ div >
223
222
) ;
224
223
}
225
-
0 commit comments