You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#4605 by removing the `validator` from the `Example` samples
- Updated the `examples.ts` to remove the `validator` that was causing the issue
- Updated `Samples.ts` to remove the `validator` redefinition from the `Samples` types
- Updated the `Playground` to add the `validator` back onto the `load` function, renaming `validator` to `theValidator` to avoid possible confusion with the state variable
- Updated `Header` to remove `React.` with inputs and replaced `React.FC` with a real functional component using `PropsWithChildren`
- Also fixed up type warning for `onSubthemeSelected` by using proper `SubthemeType`.
- Made the `HeaderButtons` click handlers be `useCallback`s
- Updated `SpecialInput` to remove `React.FC` in favor of a functional component using `PropsWithChildren`, extracting the `onChange` handler to a `useCallback`
- Updated `SubthemeSelector.ts` to export the `SubthemeType`
- Updated `ThemeSelector` and `ValidatorSelector` to extract the `onChange` handlers to a `useCallback`
0 commit comments