Skip to content

Commit 419ce87

Browse files
committed
Narrow types allowed type arg in buttonClass function
1 parent cab259d commit 419ce87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Calendar/Days.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const Days: React.FC<Props> = ({
204204
);
205205

206206
const buttonClass = useCallback(
207-
(day: number, type: "current" | "previous" | "next") => {
207+
(day: number, type: "current" | "next" | "previous") => {
208208
const baseClass = "flex items-center justify-center w-12 h-12 lg:w-10 lg:h-10";
209209
return cn(
210210
baseClass,

0 commit comments

Comments
 (0)