Skip to content

Commit deb95f9

Browse files
authored
chore: remove unused code (coder#16815)
1 parent 9041646 commit deb95f9

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
import isChromatic from "chromatic/isChromatic";
29-
import React, { 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
await axiosInstance.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_types from "@storybook/react";
21
import type {
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, type InsightsParams, type InsightsTemplateParams } from "api/api";
22
import type { GetUserStatusCountsResponse } from "api/typesGenerated";
3-
import { type UseQueryOptions, UseQueryResult } from "react-query";
3+
import type { UseQueryOptions } from "react-query";
44

55
export const insightsTemplate = (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
import type {
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 * as DropdownMenuPrimitive from "@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
type ComponentPropsWithoutRef,
1413
type ElementRef,
15-
type FC,
1614
type HTMLAttributes,
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-
import type { Interpolation } from "@emotion/react";
111
import Link from "@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
import data from "@emoji-mart/data/sets/15/apple.json";
22
import EmojiMart from "@emoji-mart/react";
3-
import {
4-
type ComponentProps,
5-
type FC,
6-
useEffect,
7-
useLayoutEffect,
8-
} from "react";
3+
import { type ComponentProps, type FC, useEffect } from "react";
94
import icons from "theme/icons.json";
105

116
const custom = [

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
const styles = {
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
import type { Meta, StoryObj } from "@storybook/react";
2-
import { userEvent } from "@storybook/test";
32
import {
43
Select,
54
SelectContent,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy