Skip to content

Commit

Permalink
πŸ’„ fix prefix by adding ssm vendor prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineKM committed Jan 10, 2024
1 parent f7f3223 commit 939e5f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-eels-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tonightpass/kitchen": patch
---

Fix prefix by adding ssm vendor prefixes
18 changes: 10 additions & 8 deletions packages/kitchen/src/components/Provider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ThemeProvider as NextThemeProvider } from "next-themes";
import { ThemeProviderProps as NextThemeProviderProps } from "next-themes/dist/types";
import React from "react";
import { DefaultTheme } from "styled-components";
import { DefaultTheme, StyleSheetManager } from "styled-components";

import { PREFIX } from "../../constants";
import { ThemeProvider, ThemeProviderProps } from "../../contexts/Theme";
Expand Down Expand Up @@ -86,13 +86,15 @@ const KitchenProvider: React.FC<KitchenProviderProps> = ({
forcedTheme={forcedTheme}
dangerouslyDisableNextThemeProvider={dangerouslyDisableNextThemeProvider}
>
<ThemeProvider themes={themes}>
<GlobalStyle staticThemes={staticThemes} attribute={attribute} />
<ToastsContent.Provider value={initialValue}>
{children}
<ToastContainer />
</ToastsContent.Provider>
</ThemeProvider>
<StyleSheetManager enableVendorPrefixes>
<ThemeProvider themes={themes}>
<GlobalStyle staticThemes={staticThemes} attribute={attribute} />
<ToastsContent.Provider value={initialValue}>
{children}
<ToastContainer />
</ToastsContent.Provider>
</ThemeProvider>
</StyleSheetManager>
</NextThemeProviderWrapper>
);
};
Expand Down

2 comments on commit 939e5f9

@vercel
Copy link

@vercel vercel bot commented on 939e5f9 Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 939e5f9 Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kitchen-workshop – ./workshop

kitchen-workshop-tonightpass.vercel.app
kitchen-workshop.vercel.app
kitchen-workshop-git-master-tonightpass.vercel.app

Please sign in to comment.