Skip to content

Commit 08c833d

Browse files
authored
Merge pull request #13800 from ethereum/fix-sb-tooltip-provider
[staging] Fix sb tooltip provider
2 parents 62f0493 + a8bdbcf commit 08c833d

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.storybook/preview.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { MotionGlobalConfig } from "framer-motion"
33
import type { Preview } from "@storybook/react"
44

55
import ThemeProvider from "@/components/ThemeProvider"
6+
import { TooltipProvider } from "@/components/ui/tooltip"
67

78
import i18n, { baseLocales } from "./i18next"
89
import { withNextThemes } from "./withNextThemes"
@@ -39,7 +40,9 @@ const preview: Preview = {
3940
}),
4041
(Story) => (
4142
<ThemeProvider>
42-
<Story />
43+
<TooltipProvider>
44+
<Story />
45+
</TooltipProvider>
4346
</ThemeProvider>
4447
),
4548
],

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

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

4-
import { TooltipProvider } from "@/components/ui/tooltip"
5-
64
import GlossaryTooltipComponent from "."
75

86
const meta = {
@@ -15,9 +13,7 @@ const meta = {
1513
decorators: [
1614
(Story) => (
1715
<Center boxSize="md">
18-
<TooltipProvider>
19-
<Story />
20-
</TooltipProvider>
16+
<Story />
2117
</Center>
2218
),
2319
],

src/components/Tooltip/Tooltip.stories.tsx

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

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

98
// TODO: remove `index` when we delete the old tooltip
109
import TooltipComponent from "./index"
@@ -47,9 +46,7 @@ const meta = {
4746
decorators: [
4847
(Story) => (
4948
<Center boxSize="md">
50-
<TooltipProvider>
51-
<Story />
52-
</TooltipProvider>
49+
<Story />
5350
</Center>
5451
),
5552
],

0 commit comments

Comments
 (0)