Skip to content

Commit 9502c23

Browse files
committed
ui: remove legacy router types and fix yaml typing
Signed-off-by: Ryan Swanson <ryan.swanson@loft.sh>
1 parent f98d0dc commit 9502c23

4 files changed

Lines changed: 11 additions & 47 deletions

File tree

assets/assets.go

Lines changed: 9 additions & 11 deletions
Large diffs are not rendered by default.

ui/package-lock.json

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

ui/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@
7878
"@types/node": "^10.17.60",
7979
"@types/react": "^16.14.65",
8080
"@types/react-dom": "^16.9.25",
81-
"@types/react-router": "^4.4.5",
82-
"@types/react-router-dom": "^5.3.3",
8381
"babel-preset-env": "^1.7.0",
8482
"cross-env": "^6.0.3",
8583
"ignore-loader": "^0.1.2",

ui/src/lib/utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { V1Pod, V1ContainerStatus, Config } from '@kubernetes/client-node';
2+
import { V1Pod, V1ContainerStatus } from '@kubernetes/client-node';
33
import yaml from 'js-yaml';
44

55
export const formatError = (error: any): any => {
@@ -275,7 +275,7 @@ export const GetContainerStatus = (container: V1ContainerStatus) => {
275275
return reason;
276276
};
277277

278-
export const configToYAML = (config: Config, reverse?: boolean) => {
278+
export const configToYAML = (config: object, reverse?: boolean) => {
279279
const yamlString = yaml.dump(config, {
280280
sortKeys: reverse ? (a, b) => (a < b ? 1 : a > b ? -1 : 0) : false,
281281
});

0 commit comments

Comments
 (0)