Skip to content

Commit 268b993

Browse files
committed
fix tooltip stories
1 parent 6fce9f5 commit 268b993

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/Glossary/GlossaryTooltip/GlossaryTooltip.stories.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { Center } from "@chakra-ui/react"
22
import { Meta, StoryObj } from "@storybook/react"
33

4+
import { TooltipProvider } from "@/components/ui/tooltip"
5+
46
import GlossaryTooltipComponent from "."
57

68
const meta = {
@@ -13,7 +15,9 @@ const meta = {
1315
decorators: [
1416
(Story) => (
1517
<Center boxSize="md">
16-
<Story />
18+
<TooltipProvider>
19+
<Story />
20+
</TooltipProvider>
1721
</Center>
1822
),
1923
],

src/components/Tooltip/Tooltip.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Meta, StoryObj } from "@storybook/react"
44

55
import InlineLink from "../Link"
66
import Translation from "../Translation"
7+
import { TooltipProvider } from "../ui/tooltip"
78

89
// TODO: remove `index` when we delete the old tooltip
910
import TooltipComponent from "./index"
@@ -46,7 +47,9 @@ const meta = {
4647
decorators: [
4748
(Story) => (
4849
<Center boxSize="md">
49-
<Story />
50+
<TooltipProvider>
51+
<Story />
52+
</TooltipProvider>
5053
</Center>
5154
),
5255
],

0 commit comments

Comments
 (0)