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

Commitdeb95f9

Browse files
authored
chore: remove unused code (#16815)
1 parent9041646 commitdeb95f9

File tree

53 files changed

+26
-86
lines changed

Some content is hidden

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

53 files changed

+26
-86
lines changed

‎site/.storybook/preview.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
}from"@mui/material/styles";
2727
import{DecoratorHelpers}from"@storybook/addon-themes";
2828
importisChromaticfrom"chromatic/isChromatic";
29-
importReact,{StrictMode}from"react";
29+
import{StrictMode}from"react";
3030
import{HelmetProvider}from"react-helmet-async";
3131
import{QueryClient,QueryClientProvider,parseQueryArgs}from"react-query";
3232
import{withRouter}from"storybook-addon-remix-react-router";

‎site/e2e/helpers.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ export const waitUntilUrlIsNotResponding = async (url: string) => {
510510
while(retries<maxRetries){
511511
try{
512512
awaitaxiosInstance.get(url);
513-
}catch(error){
513+
}catch{
514514
return;
515515
}
516516

‎site/src/@types/storybook.d.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import*as_storybook_typesfrom"@storybook/react";
21
importtype{
32
DeploymentValues,
43
Experiments,

‎site/src/api/queries/insights.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import{API,typeInsightsParams,typeInsightsTemplateParams}from"api/api";
22
importtype{GetUserStatusCountsResponse}from"api/typesGenerated";
3-
import{typeUseQueryOptions,UseQueryResult}from"react-query";
3+
importtype{UseQueryOptions}from"react-query";
44

55
exportconstinsightsTemplate=(params:InsightsTemplateParams)=>{
66
return{

‎site/src/api/queries/templates.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { API, type GetTemplatesOptions, type GetTemplatesQuery } from "api/api";
22
importtype{
33
CreateTemplateRequest,
44
CreateTemplateVersionRequest,
5-
Preset,
65
ProvisionerJob,
76
ProvisionerJobStatus,
87
Template,

‎site/src/components/DropdownMenu/DropdownMenu.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
*/
88

99
import*asDropdownMenuPrimitivefrom"@radix-ui/react-dropdown-menu";
10-
import{Button}from"components/Button/Button";
11-
import{Check,ChevronDownIcon,ChevronRight,Circle}from"lucide-react";
10+
import{Check,ChevronRight,Circle}from"lucide-react";
1211
import{
1312
typeComponentPropsWithoutRef,
1413
typeElementRef,
15-
typeFC,
1614
typeHTMLAttributes,
1715
forwardRef,
1816
}from"react";

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/**
2-
*@file A global error boundary designed to work with React Router.
3-
*
4-
* This is not documented well, but because of React Router works, it will
5-
* automatically intercept any render errors produced in routes, and will
6-
* "swallow" them, preventing the errors from bubbling up to any error
7-
* boundaries above the router. The global error boundary must be explicitly
8-
* bound to a route to work as expected.
9-
*/
10-
importtype{Interpolation}from"@emotion/react";
111
importLinkfrom"@mui/material/Link";
122
import{Button}from"components/Button/Button";
133
import{CoderIcon}from"components/Icons/CoderIcon";

‎site/src/components/IconField/EmojiPicker.tsx‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
importdatafrom"@emoji-mart/data/sets/15/apple.json";
22
importEmojiMartfrom"@emoji-mart/react";
3-
import{
4-
typeComponentProps,
5-
typeFC,
6-
useEffect,
7-
useLayoutEffect,
8-
}from"react";
3+
import{typeComponentProps,typeFC,useEffect}from"react";
94
importiconsfrom"theme/icons.json";
105

116
constcustom=[

‎site/src/components/Paywall/PopoverPaywall.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ const FeatureIcon: FC = () => {
8888
};
8989

9090
conststyles={
91-
root:(theme)=>({
91+
root:{
9292
display:"flex",
9393
flexDirection:"row",
9494
alignItems:"center",
9595
maxWidth:770,
9696
padding:"24px 36px",
9797
borderRadius:8,
9898
gap:18,
99-
}),
99+
},
100100
title:{
101101
fontWeight:600,
102102
fontFamily:"inherit",

‎site/src/components/Select/Select.stories.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
importtype{Meta,StoryObj}from"@storybook/react";
2-
import{userEvent}from"@storybook/test";
32
import{
43
Select,
54
SelectContent,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp