mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
Fix tsc and ESLint warnings
This commit is contained in:
@@ -3,7 +3,7 @@ import './BigButton.css'
|
||||
|
||||
interface IProps {
|
||||
children: React.ReactNode;
|
||||
onClick: () => any;
|
||||
onClick: () => unknown;
|
||||
id: string;
|
||||
disabled?: boolean;
|
||||
}
|
||||
@@ -23,7 +23,7 @@ export default class BigButton extends React.Component<IProps, IState> {
|
||||
this.handleClick = this.handleClick.bind(this)
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps(props: IProps, state: IState) {
|
||||
static getDerivedStateFromProps(props: IProps, _state: IState) {
|
||||
return {
|
||||
disabled: props.disabled
|
||||
}
|
||||
|
||||
@@ -12,9 +12,7 @@ interface IProps {
|
||||
id?: string;
|
||||
clearable?: boolean;
|
||||
customClearBehaviour?: () => void;
|
||||
style?: {
|
||||
[key: string]: any;
|
||||
}
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
interface IState {
|
||||
|
||||
Reference in New Issue
Block a user