@@ -60,20 +60,14 @@ const Days: React.FC<Props> = ({
6060 let className = "" ;
6161
6262 if ( dayjs ( fullDay ) . isSame ( period . start ) && dayjs ( fullDay ) . isSame ( period . end ) ) {
63- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
64- // @ts -ignore
6563 className = ` ${ BG_COLOR [ "500" ] [ primaryColor ] } text-white font-medium rounded-full` ;
6664 } else if ( dayjs ( fullDay ) . isSame ( period . start ) ) {
67- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
68- // @ts -ignore
6965 className = ` ${ BG_COLOR [ "500" ] [ primaryColor ] } text-white font-medium ${
7066 dayjs ( fullDay ) . isSame ( dayHover ) && ! period . end
7167 ? "rounded-full"
7268 : "rounded-l-full"
7369 } `;
7470 } else if ( dayjs ( fullDay ) . isSame ( period . end ) ) {
75- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
76- // @ts -ignore
7771 className = ` ${ BG_COLOR [ "500" ] [ primaryColor ] } text-white font-medium ${
7872 dayjs ( fullDay ) . isSame ( dayHover ) && ! period . start
7973 ? "rounded-full"
@@ -97,46 +91,30 @@ const Days: React.FC<Props> = ({
9791 } `;
9892
9993 if ( period . start && period . end ) {
100- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
101- // @ts -ignore
10294 if ( dayjs ( fullDay ) . isBetween ( period . start , period . end , "day" , "[)" ) ) {
103- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
104- // @ts -ignore
10595 return ` ${ BG_COLOR [ "100" ] [ primaryColor ] } ${ currentDateClass (
10696 day
10797 ) } dark:bg-white/10`;
10898 }
10999 }
110100
111101 if ( ! dayHover ) {
112- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
113- // @ts -ignore
114102 return className ;
115103 }
116104
117- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
118- // @ts -ignore
119105 if ( period . start && dayjs ( fullDay ) . isBetween ( period . start , dayHover , "day" , "[)" ) ) {
120- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
121- // @ts -ignore
122106 className = ` ${ BG_COLOR [ "100" ] [ primaryColor ] } ${ currentDateClass (
123107 day
124108 ) } dark:bg-white/10`;
125109 }
126110
127- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
128- // @ts -ignore
129111 if ( period . end && dayjs ( fullDay ) . isBetween ( dayHover , period . end , "day" , "[)" ) ) {
130- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
131- // @ts -ignore
132112 className = ` ${ BG_COLOR [ "100" ] [ primaryColor ] } ${ currentDateClass (
133113 day
134114 ) } dark:bg-white/10`;
135115 }
136116
137117 if ( dayHover === fullDay ) {
138- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
139- // @ts -ignore
140118 const bgColor = BG_COLOR [ "500" ] [ primaryColor ] ;
141119 className = ` transition-all duration-500 text-white font-medium ${ bgColor } ${
142120 period . start ? "rounded-r-full" : "rounded-l-full"
0 commit comments