Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd70e26d

Browse files
BrunoQuaresmaaslilacaqandrew
authored
chore: remove react-helmet (#19963)
Since React 19 supports head tags natively, we no longer need to use`react-helmet`.---------Co-authored-by: ケイラ <mckayla@hey.com>Co-authored-by: Andrew Aquino <dawneraq@gmail.com>
1 parenteb74732 commitd70e26d

File tree

129 files changed

+199
-525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+199
-525
lines changed

‎site/.storybook/preview.tsx‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
import{DecoratorHelpers}from"@storybook/addon-themes";
1010
importisChromaticfrom"chromatic/isChromatic";
1111
import{StrictMode}from"react";
12-
import{HelmetProvider}from"react-helmet-async";
1312
import{QueryClient,QueryClientProvider}from"react-query";
1413
import{withRouter}from"storybook-addon-remix-react-router";
1514
import"theme/globalFonts";
@@ -62,14 +61,6 @@ export const parameters: Parameters = {
6261
},
6362
};
6463

65-
constwithHelmet:Decorator=(Story)=>{
66-
return(
67-
<HelmetProvider>
68-
<Story/>
69-
</HelmetProvider>
70-
);
71-
};
72-
7364
constwithQuery:Decorator=(Story,{ parameters})=>{
7465
constqueryClient=newQueryClient({
7566
defaultOptions:{
@@ -118,12 +109,7 @@ const withTheme: Decorator = (Story, context) => {
118109
);
119110
};
120111

121-
exportconstdecorators:Decorator[]=[
122-
withRouter,
123-
withQuery,
124-
withHelmet,
125-
withTheme,
126-
];
112+
exportconstdecorators:Decorator[]=[withRouter,withQuery,withTheme];
127113

128114
// Try to fix storybook rendering fonts inconsistently
129115
// https://www.chromatic.com/docs/font-loading/#solution-c-check-fonts-have-loaded-in-a-loader

‎site/index.html‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,29 @@
2828
<metaproperty="docs-url"content="{{ .DocsURL }}"/>
2929
<metaproperty="logo-url"content="{{ .LogoURL }}"/>
3030
<metaproperty="tasks-tab-visible"content="{{ .TasksTabVisible }}"/>
31-
<!-- We need to set data-react-helmet to be able to override it in the workspace page -->
3231
<link
3332
rel="alternate icon"
3433
type="image/png"
3534
href="/favicons/favicon-light.png"
3635
media="(prefers-color-scheme: dark)"
37-
data-react-helmet="true"
3836
/>
3937
<link
4038
rel="icon"
4139
type="image/svg+xml"
4240
href="/favicons/favicon-light.svg"
4341
media="(prefers-color-scheme: dark)"
44-
data-react-helmet="true"
4542
/>
4643
<link
4744
rel="alternate icon"
4845
type="image/png"
4946
href="/favicons/favicon-dark.png"
5047
media="(prefers-color-scheme: light)"
51-
data-react-helmet="true"
5248
/>
5349
<link
5450
rel="icon"
5551
type="image/svg+xml"
5652
href="/favicons/favicon-dark.svg"
5753
media="(prefers-color-scheme: light)"
58-
data-react-helmet="true"
5954
/>
6055
</head>
6156

‎site/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
"react-confetti":"6.2.2",
100100
"react-date-range":"1.4.0",
101101
"react-dom":"19.1.1",
102-
"react-helmet-async":"2.0.5",
103102
"react-markdown":"9.0.3",
104103
"react-query":"npm:@tanstack/react-query@5.77.0",
105104
"react-resizable-panels":"3.0.3",

‎site/pnpm-lock.yaml‎

Lines changed: 0 additions & 32 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/src/App.tsx‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
useEffect,
88
useState,
99
}from"react";
10-
import{HelmetProvider}from"react-helmet-async";
1110
import{QueryClient,QueryClientProvider}from"react-query";
1211
import{RouterProvider}from"react-router";
1312
import{GlobalSnackbar}from"./components/GlobalSnackbar/GlobalSnackbar";
@@ -51,17 +50,15 @@ export const AppProviders: FC<AppProvidersProps> = ({
5150
},[]);
5251

5352
return(
54-
<HelmetProvider>
55-
<QueryClientProviderclient={queryClient}>
56-
<AuthProvider>
57-
<ThemeProvider>
58-
{children}
59-
<GlobalSnackbar/>
60-
</ThemeProvider>
61-
</AuthProvider>
62-
{showDevtools&&<ReactQueryDevtoolsinitialIsOpen={showDevtools}/>}
63-
</QueryClientProvider>
64-
</HelmetProvider>
53+
<QueryClientProviderclient={queryClient}>
54+
<AuthProvider>
55+
<ThemeProvider>
56+
{children}
57+
<GlobalSnackbar/>
58+
</ThemeProvider>
59+
</AuthProvider>
60+
{showDevtools&&<ReactQueryDevtoolsinitialIsOpen={showDevtools}/>}
61+
</QueryClientProvider>
6562
);
6663
};
6764

‎site/src/components/Alert/Alert.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
typeReactNode,
1212
useState,
1313
}from"react";
14-
1514
exporttypeAlertColor=MuiAlertColor;
1615

1716
exporttypeAlertProps=MuiAlertProps&{

‎site/src/components/Avatar/AvatarDataSkeleton.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
importSkeletonfrom"@mui/material/Skeleton";
22
importtype{FC}from"react";
3-
43
exportconstAvatarDataSkeleton:FC=()=>{
54
return(
65
<divclassName="flex items-center gap-3 w-full">

‎site/src/components/Checkbox/Checkbox.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import*asCheckboxPrimitivefrom"@radix-ui/react-checkbox";
66
import{Check,Minus}from"lucide-react";
77
import*asReactfrom"react";
8-
98
import{cn}from"utils/cn";
109

1110
/**

‎site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { CoderIcon } from "components/Icons/CoderIcon";
33
import{Link}from"components/Link/Link";
44
import{useEmbeddedMetadata}from"hooks/useEmbeddedMetadata";
55
import{typeFC,useState}from"react";
6-
import{Helmet}from"react-helmet-async";
76
import{
87
typeErrorResponse,
98
isRouteErrorResponse,
@@ -34,9 +33,7 @@ export const GlobalErrorBoundaryInner: FC<GlobalErrorBoundaryInnerProps> = ({
3433

3534
return(
3635
<divclassName="bg-surface-primary text-center w-full h-full flex justify-center items-center">
37-
<Helmet>
38-
<title>{errorPageTitle}</title>
39-
</Helmet>
36+
<title>{errorPageTitle}</title>
4037

4138
<mainclassName="flex gap-6 w-full max-w-prose p-4 flex-col flex-nowrap">
4239
<divclassName="flex gap-2 flex-col items-center">

‎site/src/components/FullPageForm/FullPageForm.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
PageHeaderTitle,
66
}from"components/PageHeader/PageHeader";
77
importtype{FC,ReactNode}from"react";
8-
98
exportinterfaceFullPageFormProps{
109
title:string;
1110
detail?:ReactNode;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp