Skip to content

Commit 695885b

Browse files
[Fix] Condition for icons render in ToggleButton
1 parent 29ffd1f commit 695885b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ToggleButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import React from "react";
33
import { CloseIcon, DateIcon } from "./utils";
44

55
interface ToggleButtonProps {
6-
isEmpty?: boolean | undefined;
6+
isEmpty: boolean;
77
}
88

99
const ToggleButton: React.FC<ToggleButtonProps> = (e: ToggleButtonProps): JSX.Element => {
10-
return e.isEmpty ? <CloseIcon className="h-5 w-5" /> : <DateIcon className="h-5 w-5" />;
10+
return e.isEmpty ? <DateIcon className="h-5 w-5" /> : <CloseIcon className="h-5 w-5" />;
1111
};
1212

1313
export default ToggleButton;

0 commit comments

Comments
 (0)