mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 07:20: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;
|
onFormSubmit: () => void;
|
||||||
} | null = null;
|
} | 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) {
|
componentDidUpdate(prevProps: Props) {
|
||||||
const nextPanel: PanelId = this.props.Body && (this.props.Body.type as any).panelId;
|
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) {
|
if (forceHeight) {
|
||||||
this.timerIds.push(
|
this.timerIds.push(
|
||||||
// https://stackoverflow.com/a/51040768/5184751
|
setTimeout(() => {
|
||||||
window.setTimeout(() => {
|
|
||||||
this.setState({ forceHeight: 0 });
|
this.setState({ forceHeight: 0 });
|
||||||
}, 100),
|
}, 100),
|
||||||
);
|
);
|
||||||
|
@ -22,7 +22,7 @@ const DeviceCode: FC<RouteComponentProps> = (props) => {
|
|||||||
Body={<DeviceCodeBody {...props} />}
|
Body={<DeviceCodeBody {...props} />}
|
||||||
Footer={
|
Footer={
|
||||||
<Button type="submit">
|
<Button type="submit">
|
||||||
<Message id="continue" defaultMessage="Cotinute" />
|
<Message id="continue" defaultMessage="Continue" />
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -39,11 +39,10 @@ export default class Dropdown extends FormInputComponent<Props, State> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
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;
|
const { isActive } = this.state;
|
||||||
|
|
||||||
delete restProps.label;
|
|
||||||
|
|
||||||
const activeItem = this.getActiveItem();
|
const activeItem = this.getActiveItem();
|
||||||
const label = React.isValidElement(activeItem.label) ? activeItem.label : this.formatMessage(activeItem.label);
|
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...');
|
console.log('Rebuilding dlls...');
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise<void>((resolve, reject) => {
|
||||||
compiler.run((err, stats) => {
|
compiler.run((err, stats) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return reject(err);
|
return reject(err);
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
"esModuleInterop": true, // allow importing commonjs exports as default in es imports
|
"esModuleInterop": true, // allow importing commonjs exports as default in es imports
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"checkJs": true,
|
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user