We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 460debb + 695885b commit b041b78Copy full SHA for b041b78
src/components/ToggleButton.tsx
@@ -3,11 +3,11 @@ import React from "react";
3
import { CloseIcon, DateIcon } from "./utils";
4
5
interface ToggleButtonProps {
6
- isEmpty?: boolean | undefined;
+ isEmpty: boolean;
7
}
8
9
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" />;
+ return e.isEmpty ? <DateIcon className="h-5 w-5" /> : <CloseIcon className="h-5 w-5" />;
11
};
12
13
export default ToggleButton;
0 commit comments