@@ -27,7 +27,6 @@ import {
27
27
import { DecoratorHelpers } from "@storybook/addon-themes" ;
28
28
import isChromatic from "chromatic/isChromatic" ;
29
29
import { StrictMode } from "react" ;
30
- import { HelmetProvider } from "react-helmet-async" ;
31
30
import { QueryClient , QueryClientProvider , parseQueryArgs } from "react-query" ;
32
31
import { withRouter } from "storybook-addon-remix-react-router" ;
33
32
import "theme/globalFonts" ;
@@ -36,7 +35,7 @@ import themes from "../src/theme";
36
35
DecoratorHelpers . initializeThemeState ( Object . keys ( themes ) , "dark" ) ;
37
36
38
37
/** @type {readonly Decorator[] } */
39
- export const decorators = [ withRouter , withQuery , withHelmet , withTheme ] ;
38
+ export const decorators = [ withRouter , withQuery , withTheme ] ;
40
39
41
40
/** @type {Preview["parameters"] } */
42
41
export const parameters = {
@@ -83,24 +82,6 @@ export const parameters = {
83
82
} ,
84
83
} ;
85
84
86
- /**
87
- * There's a mismatch on the React Helmet return type that causes issues when
88
- * mounting the component in JS files only. Have to do type assertion, which is
89
- * especially ugly in JSDoc
90
- */
91
- const SafeHelmetProvider = /** @type {FC } */ (
92
- /** @type {unknown } */ ( HelmetProvider )
93
- ) ;
94
-
95
- /** @type {Decorator } */
96
- function withHelmet ( Story ) {
97
- return (
98
- < SafeHelmetProvider >
99
- < Story />
100
- </ SafeHelmetProvider >
101
- ) ;
102
- }
103
-
104
85
/** @type {Decorator } */
105
86
function withQuery ( Story , { parameters } ) {
106
87
const queryClient = new QueryClient ( {
0 commit comments