Skip to content

Commit

Permalink
Remove uneeded-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartoxian committed Oct 23, 2023
1 parent 9ef080e commit d73e41d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 294 deletions.
1 change: 0 additions & 1 deletion enclave-manager/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@tanstack/react-table": "^8.10.7",
"enclave-manager-sdk": "file:../api/typescript",
"framer-motion": "^10.16.4",
"kurtosis-sdk": "file:../../api/typescript",
"luxon": "^3.4.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
1 change: 1 addition & 0 deletions enclave-manager/web/src/client/KurtosisClientContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const KurtosisClientProvider = ({ children }: PropsWithChildren) => {
const searchParams = new URLSearchParams(window.location.search);
const requireAuth = isStringTrue(searchParams.get("require_authentication"));
const requestedApiHost = searchParams.get("api_host");
// eslint-disable-next-line
const preloadedPackage = searchParams.get("package");
try {
setError(undefined);
Expand Down
2 changes: 1 addition & 1 deletion enclave-manager/web/src/components/KurtosisBreadcrumbs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator } from "@chakra-ui/react";
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink } from "@chakra-ui/react";
import { Link } from "react-router-dom";
import { ChevronRightIcon } from "@chakra-ui/icons";

Expand Down
10 changes: 1 addition & 9 deletions enclave-manager/web/src/components/KurtosisThemeProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { mode } from "@chakra-ui/theme-tools";
import {
ChakraProvider,
cssVar,
defineStyle,
extendTheme,
StyleFunctionProps,
ThemeConfig,
Tooltip,
} from "@chakra-ui/react";
import { ChakraProvider, defineStyle, extendTheme, StyleFunctionProps, ThemeConfig, Tooltip } from "@chakra-ui/react";
import { PropsWithChildren } from "react";
import type { ChakraProviderProps } from "@chakra-ui/react/dist/chakra-provider";
import { tabsTheme } from "./theme/tabsTheme";
Expand Down
2 changes: 1 addition & 1 deletion enclave-manager/web/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Flex, IconButton, IconButtonProps, Image, Tooltip } from "@chakra-ui/react";
import { Flex, IconButton, IconButtonProps, Image, Tooltip } from "@chakra-ui/react";
import { PropsWithChildren } from "react";

export const Navigation = ({ children }: PropsWithChildren) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Flex, Icon } from "@chakra-ui/react";
import { Button, Icon } from "@chakra-ui/react";
import { IoLogoGithub } from "react-icons/io";

type EnclaveSourceProps = {
Expand Down
16 changes: 2 additions & 14 deletions enclave-manager/web/src/emui/enclaves/EnclaveList.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
import {
Button,
ButtonGroup,
Card,
Flex,
Icon,
Spinner,
Tab,
TabList,
TabPanel,
TabPanels,
Tabs,
} from "@chakra-ui/react";
import { Button, ButtonGroup, Flex, Spinner, Tab, TabList, TabPanel, TabPanels, Tabs } from "@chakra-ui/react";
import { useKurtosisClient } from "../../client/KurtosisClientContext";
import { useEffect, useState } from "react";
import { isDefined } from "../../utils";
Expand Down Expand Up @@ -42,7 +30,7 @@ export const EnclaveList = () => {
})),
);
})();
}, []);
}, [kurtosisClient]);

return (
<Flex direction="column">
Expand Down
269 changes: 2 additions & 267 deletions enclave-manager/web/yarn.lock

Large diffs are not rendered by default.

0 comments on commit d73e41d

Please sign in to comment.