diff options
author | 2022-11-07 01:11:48 +0530 | |
---|---|---|
committer | 2022-11-08 17:25:27 +0530 | |
commit | a1f5e31bfce97b4bbe492e24bf7d57ec2803c31a (patch) | |
tree | 881417b8917e8212fcf94547b92bba2701592745 /src/components/ui/button/index.tsx | |
parent | 6.2.1-nightly.42 [skip ci] (diff) | |
download | ferdium-app-a1f5e31bfce97b4bbe492e24bf7d57ec2803c31a.tar.gz ferdium-app-a1f5e31bfce97b4bbe492e24bf7d57ec2803c31a.tar.zst ferdium-app-a1f5e31bfce97b4bbe492e24bf7d57ec2803c31a.zip |
refactor: remove toggle component's duplicate
Diffstat (limited to 'src/components/ui/button/index.tsx')
-rw-r--r-- | src/components/ui/button/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ui/button/index.tsx b/src/components/ui/button/index.tsx index c1e647bc0..dc984bf95 100644 --- a/src/components/ui/button/index.tsx +++ b/src/components/ui/button/index.tsx | |||
@@ -2,7 +2,7 @@ import Icon from '@mdi/react'; | |||
2 | import classnames from 'classnames'; | 2 | import classnames from 'classnames'; |
3 | import { Property } from 'csstype'; | 3 | import { Property } from 'csstype'; |
4 | import { noop } from 'lodash'; | 4 | import { noop } from 'lodash'; |
5 | import { Component, MouseEvent } from 'react'; | 5 | import { Component, MouseEventHandler } from 'react'; |
6 | import withStyles, { WithStylesProps } from 'react-jss'; | 6 | import withStyles, { WithStylesProps } from 'react-jss'; |
7 | import Loader from 'react-loader'; | 7 | import Loader from 'react-loader'; |
8 | import { Theme } from '../../../themes'; | 8 | import { Theme } from '../../../themes'; |
@@ -136,7 +136,7 @@ interface IProps extends IFormField, WithStylesProps<typeof styles> { | |||
136 | disabled?: boolean; | 136 | disabled?: boolean; |
137 | id?: string; | 137 | id?: string; |
138 | type?: 'button' | 'reset' | 'submit' | undefined; | 138 | type?: 'button' | 'reset' | 'submit' | undefined; |
139 | onClick: (event: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void; | 139 | onClick?: MouseEventHandler<HTMLInputElement>; |
140 | buttonType?: ButtonType; | 140 | buttonType?: ButtonType; |
141 | loaded?: boolean; | 141 | loaded?: boolean; |
142 | busy?: boolean; | 142 | busy?: boolean; |