refactor(frontend): moved `tabs` constant to form utils

pull/76/head
Samuel Rowe 3 years ago
parent 5ab98f7c8e
commit efba82a1cb

@ -5,6 +5,7 @@ import { XIcon } from "@heroicons/react/outline";
import { import {
getFinalValues, getFinalValues,
getInitialValues, getInitialValues,
tabs,
validationSchema validationSchema
} from "./form-utils"; } from "./form-utils";
import General from "./General"; import General from "./General";
@ -16,21 +17,6 @@ interface ICreateVolumeModalProps {
onAddEndpoint: CallbackFunction; onAddEndpoint: CallbackFunction;
} }
const tabs = [
{
name: "General",
href: "#",
current: true,
hidden: false
},
{
name: "Labels",
href: "#",
current: false,
hidden: false
}
];
const classNames = (...classes: string[]) => classes.filter(Boolean).join(" "); const classNames = (...classes: string[]) => classes.filter(Boolean).join(" ");
const CreateVolumeModal = (props: ICreateVolumeModalProps) => { const CreateVolumeModal = (props: ICreateVolumeModalProps) => {

@ -78,3 +78,18 @@ export const getFinalValues = (
} }
) as any; ) as any;
}; };
export const tabs = [
{
name: "General",
href: "#",
current: true,
hidden: false
},
{
name: "Labels",
href: "#",
current: false,
hidden: false
}
];

Loading…
Cancel
Save