@@ -24,13 +24,13 @@ import {
2424 SlotLabelContentArg ,
2525 ViewContentArg ,
2626} from "@fullcalendar/core" ;
27- import { Form } from "antd" ;
27+ import { default as Form } from "antd/es/form " ;
2828
2929export const Wrapper = styled . div < {
30- editable : boolean ;
30+ $ editable : boolean ;
3131 $style : CalendarStyleType ;
32- theme ?: ThemeDetail ;
33- left ?: number ;
32+ $ theme ?: ThemeDetail ;
33+ $ left ?: number ;
3434} > `
3535 position: relative;
3636 height: 100%;
@@ -205,9 +205,9 @@ export const Wrapper = styled.div<{
205205 flex-direction: inherit;
206206 }
207207 .fc-day-today .fc-daygrid-day-number {
208- background-color: ${ ( props ) => props . theme . primary } ;
208+ background-color: ${ ( props ) => props . $ theme. primary } ;
209209 color: ${ ( props ) =>
210- contrastText ( props . theme . primary || "" , props . theme . textDark , props . theme . textLight ) } ;
210+ contrastText ( props . $ theme. primary || "" , props . $ theme. textDark , props . $ theme. textLight ) } ;
211211 }
212212 .fc-daygrid-day-events {
213213 padding: 1px 0 5px 0;
@@ -261,7 +261,7 @@ export const Wrapper = styled.div<{
261261 border-radius: 4px;
262262 box-shadow: 0 0px 10px 4px rgba(0, 0, 0, 0.25);
263263 overflow: hidden;
264- left: ${ ( props ) => `min(${ props . left } px, calc(100% - 210px)) !important` } ;
264+ left: ${ ( props ) => `min(${ props . $ left} px, calc(100% - 210px)) !important` } ;
265265 .fc-popover-body {
266266 padding: 4px 0;
267267 min-width: 200px;
@@ -368,7 +368,7 @@ export const Wrapper = styled.div<{
368368 }
369369 &:hover {
370370 .event-remove {
371- opacity: ${ ( props ) => props . editable && 1 } ;
371+ opacity: ${ ( props ) => props . $ editable ? 1 : undefined } ;
372372 }
373373 }
374374 }
@@ -585,10 +585,10 @@ export const Wrapper = styled.div<{
585585 }
586586 .fc-day-today.fc-col-header-cell {
587587 background-color: ${ ( props ) =>
588- isDarkColor ( props . $style . background ) ? "#ffffff19" : toHex ( props . theme . primary ! ) + "19" } ;
588+ isDarkColor ( props . $style . background ) ? "#ffffff19" : toHex ( props . $ theme. primary ! ) + "19" } ;
589589 a {
590590 color: ${ ( props ) =>
591- ! isDarkColor ( props . $style . background ) && darkenColor ( props . theme . primary ! , 0.1 ) } ;
591+ ! isDarkColor ( props . $style . background ) && darkenColor ( props . $ theme. primary ! , 0.1 ) } ;
592592 }
593593 }
594594 .fc-col-header-cell-cushion {
0 commit comments