Skip to content

Commit b041b78

Browse files
authored
Merge pull request #52 from Kater-auf-Dach/master
[Fix] Condition for icons render in `ToggleButton` .
2 parents 460debb + 695885b commit b041b78

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)