Skip to content

Commit

Permalink
chore: annotate type mismatch between odyssey vs storybook theme
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterchoi-okta committed May 8, 2023
1 parent 4b12b3b commit 8d766cb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ import {
ScopedCssBaseline,
} from "@okta/odyssey-react-mui";
import { ThemeProvider as StorybookThemeProvider } from "@storybook/theming";
import type { DecoratorFn } from "@storybook/react";
import type { Decorator } from "@storybook/react";
import { Fragment } from "react";

const styles = {
fontFamily:
"'Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif",
};

export const MuiThemeDecorator: DecoratorFn = (Story) => (
export const MuiThemeDecorator: Decorator = (Story) => (
<OdysseyThemeProvider>
{/* @ts-expect-error type mismatch on "typography" */}
<StorybookThemeProvider theme={odysseyTheme}>
<Fragment>
<CssBaseline />
Expand Down

0 comments on commit 8d766cb

Please sign in to comment.