diff options
author | crupest <crupest@outlook.com> | 2021-06-26 18:46:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-26 18:46:58 +0800 |
commit | 29da3cef05ef138af2028ad44a27d706e9ae2df8 (patch) | |
tree | 91e651c098e52a5a709cb780ba7847a8f6ec586a /FrontEnd/src/views/common/ToggleIconButton.tsx | |
parent | fa540c046d126449f77e46edd379bbc84e02d05d (diff) | |
download | timeline-29da3cef05ef138af2028ad44a27d706e9ae2df8.tar.gz timeline-29da3cef05ef138af2028ad44a27d706e9ae2df8.tar.bz2 timeline-29da3cef05ef138af2028ad44a27d706e9ae2df8.zip |
...
Diffstat (limited to 'FrontEnd/src/views/common/ToggleIconButton.tsx')
-rw-r--r-- | FrontEnd/src/views/common/ToggleIconButton.tsx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/FrontEnd/src/views/common/ToggleIconButton.tsx b/FrontEnd/src/views/common/ToggleIconButton.tsx deleted file mode 100644 index c4d2d132..00000000 --- a/FrontEnd/src/views/common/ToggleIconButton.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import React from "react"; -import classnames from "classnames"; - -export interface ToggleIconButtonProps - extends React.HTMLAttributes<HTMLElement> { - state: boolean; - trueIconClassName: string; - falseIconClassName: string; -} - -const ToggleIconButton: React.FC<ToggleIconButtonProps> = ({ - state, - className, - trueIconClassName, - falseIconClassName, - ...otherProps -}) => { - return ( - <i - className={classnames( - state ? trueIconClassName : falseIconClassName, - "icon-button", - className - )} - {...otherProps} - /> - ); -}; - -export default ToggleIconButton; |