refactor(frontend): removed unnecessary utility functions

pull/78/head
Samuel Rowe 3 years ago
parent 29ed43ce9f
commit 5f94c1ec62

@ -11,14 +11,7 @@ import {
values values
} from "lodash"; } from "lodash";
import { LOCAL_STORAGE } from "../constants"; import { LOCAL_STORAGE } from "../constants";
import { import { IServiceNodeItem, INodeLibraryItem, INodeGroup } from "../types";
IServiceNodeItem,
INodeLibraryItem,
INodeGroup,
ICanvasConfig,
INetworkTopLevel,
IVolumeTopLevel
} from "../types";
export function ensure<T>( export function ensure<T>(
argument: T | undefined | null, argument: T | undefined | null,
@ -188,40 +181,6 @@ export const getNodeKeyFromConnectionId = (uuid: string) => {
return key; return key;
}; };
export const topLevelVolumeConfigInitialValues =
(): Partial<IVolumeTopLevel> => {
return {
name: ""
};
};
export const topLevelNetworkConfigInitialValues =
(): Partial<INetworkTopLevel> => {
return {
name: ""
};
};
export const volumeConfigCanvasInitialValues = (): ICanvasConfig => {
return {
node_name: "",
node_icon: ""
};
};
export const networkConfigCanvasInitialValues = (): ICanvasConfig => {
return {
node_name: ""
};
};
export const serviceConfigCanvasInitialValues = (): ICanvasConfig => {
return {
node_name: "",
node_icon: ""
};
};
export const toaster = (message: string, type: string) => { export const toaster = (message: string, type: string) => {
const toastConfig = { const toastConfig = {
duration: 3000, duration: 3000,

Loading…
Cancel
Save