Skip to content

Commit

Permalink
Make types match what mui expects
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Jan 23, 2025
1 parent c1a0eaf commit 327b712
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/FullPlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ export function ThemedAppView(props: { datastore: DataStore }) {
const validationState = validationService.state;

const handleChangeTab = (
_event: React.ChangeEvent<HTMLElement>,
_event: React.ChangeEvent<object>,
selectedTabValue: string
) => {
const item = datastore.getById(selectedTabValue)!;
Expand Down
2 changes: 1 addition & 1 deletion src/components/InlinePlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function InlinePlaygroundUI(props: { datastore: DataStore }) {
);

const handleChangeTab = (
_event: React.ChangeEvent<HTMLElement>,
_event: React.ChangeEvent<object>,
selectedTabName: string
) => {
setCurrentTabName(selectedTabName);
Expand Down
2 changes: 1 addition & 1 deletion src/components/panels/base/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function PanelDisplay<L extends string>(
const currentTabName = coordinator.getActivePanel(props.location)?.id || '';

const handleChangeTab = useCallback(
(_event: React.ChangeEvent<HTMLElement>, selectedPanelId: string) => {
(_event: React.ChangeEvent<object>, selectedPanelId: string) => {
coordinator.setActivePanel(selectedPanelId, props.location);
},
[coordinator, props.location]
Expand Down

0 comments on commit 327b712

Please sign in to comment.