mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-26 15:00:23 +05:30
Fix TSC errors (I have no idea why do they appear)
This commit is contained in:
parent
74da2b9984
commit
f2036012d3
@ -139,7 +139,7 @@ class PanelTransition extends React.PureComponent<Props, State> {
|
||||
onFormSubmit: () => void;
|
||||
} | null = null;
|
||||
|
||||
timerIds: Array<number> = []; // this is a list of a probably running timeouts to clean on unmount
|
||||
timerIds: Array<ReturnType<typeof setTimeout>> = []; // this is a list of a probably running timeouts to clean on unmount
|
||||
|
||||
componentDidUpdate(prevProps: Props) {
|
||||
const nextPanel: PanelId = this.props.Body && (this.props.Body.type as any).panelId;
|
||||
@ -160,8 +160,7 @@ class PanelTransition extends React.PureComponent<Props, State> {
|
||||
|
||||
if (forceHeight) {
|
||||
this.timerIds.push(
|
||||
// https://stackoverflow.com/a/51040768/5184751
|
||||
window.setTimeout(() => {
|
||||
setTimeout(() => {
|
||||
this.setState({ forceHeight: 0 });
|
||||
}, 100),
|
||||
);
|
||||
|
@ -22,7 +22,7 @@ const DeviceCode: FC<RouteComponentProps> = (props) => {
|
||||
Body={<DeviceCodeBody {...props} />}
|
||||
Footer={
|
||||
<Button type="submit">
|
||||
<Message id="continue" defaultMessage="Cotinute" />
|
||||
<Message id="continue" defaultMessage="Continue" />
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
|
@ -39,11 +39,10 @@ export default class Dropdown extends FormInputComponent<Props, State> {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { color, block, items, ...restProps } = this.props;
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { color, block, items, label: unusedLabel, ...restProps } = this.props;
|
||||
const { isActive } = this.state;
|
||||
|
||||
delete restProps.label;
|
||||
|
||||
const activeItem = this.getActiveItem();
|
||||
const label = React.isValidElement(activeItem.label) ? activeItem.label : this.formatMessage(activeItem.label);
|
||||
|
||||
|
@ -32,7 +32,7 @@ Promise.all([stat(`${__dirname}/../../yarn.lock`), stat(`${__dirname}/../../dll/
|
||||
|
||||
console.log('Rebuilding dlls...');
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
compiler.run((err, stats) => {
|
||||
if (err) {
|
||||
return reject(err);
|
||||
|
@ -9,7 +9,6 @@
|
||||
"esModuleInterop": true, // allow importing commonjs exports as default in es imports
|
||||
"moduleResolution": "node",
|
||||
"noEmit": true,
|
||||
"checkJs": true,
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strictNullChecks": true,
|
||||
|
Loading…
Reference in New Issue
Block a user