Add a TooltipProvider in the storybook preview
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user