Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Numeric Input] - Update editor screen to be more organized #1951

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove TS comment (no good way to resolve).
Mark Fitzgerald committed Dec 5, 2024
commit b7abe6e46a404fbeebe5498543cb6137d9612efe
Original file line number Diff line number Diff line change
@@ -157,8 +157,7 @@
return () => {
const toggleName = `show${accordionName}`;
const newState = {[toggleName]: !this.state[toggleName]};
// @ts-expect-error
this.setState(newState);

Check failure on line 160 in packages/perseus-editor/src/widgets/numeric-input-editor.tsx

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

Argument of type '{ [x: string]: boolean; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.

Check failure on line 160 in packages/perseus-editor/src/widgets/numeric-input-editor.tsx

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

Argument of type '{ [x: string]: boolean; }' is not assignable to parameter of type 'State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, keyof State> | null) | Pick<...> | null'.
};
};