Add a TooltipProvider in the storybook preview

This commit is contained in:
Quentin Gliech
2024-02-16 15:02:45 +01:00
parent 2b9041e140
commit 5a5630788f

View File

@@ -13,6 +13,7 @@
// limitations under the License.
import { ArgTypes, Decorator, Parameters, Preview } from "@storybook/react";
import { TooltipProvider } from "@vector-im/compound-web";
import { useLayoutEffect } from "react";
import "../src/main.css";
@@ -70,7 +71,9 @@ const withThemeProvider: Decorator = (Story, context) => {
return (
<>
<ThemeSwitcher theme={context.globals.theme} />
<Story />
<TooltipProvider>
<Story />
</TooltipProvider>
</>
);
};