Skip to content

Commit

Permalink
fix: add einride provider that registers theme
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Jul 6, 2021
1 parent 2d12a48 commit 0fe7b25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/EinrideProvider/EinrideProvider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ThemeProvider } from "@emotion/react";
import { ReactNode } from "react";
import { light } from "../../theme";

interface EinrideProviderProps {
children: ReactNode;
}

export const EinrideProvider = ({ children }: EinrideProviderProps) => {
return <ThemeProvider theme={light}>{children}</ThemeProvider>;
};
1 change: 1 addition & 0 deletions src/components/EinrideProvider/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { EinrideProvider } from "./EinrideProvider";
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { PrimaryButton } from "./components/controls/buttons/PrimaryButton";
export { SecondaryButton } from "./components/controls/buttons/SecondaryButton";
export { TertiaryButton } from "./components/controls/buttons/TertiaryButton";
export { WithIconButton } from "./components/controls/buttons/WithIconButton";
export { EinrideProvider } from "./components/EinrideProvider";
export { VerticalSpacing } from "./components/layout/VerticalSpacing";
export { Caption } from "./components/typography/Caption";
export { MegaTitle } from "./components/typography/MegaTitle";
Expand Down

0 comments on commit 0fe7b25

Please sign in to comment.