|
|
|
@ -6,11 +6,20 @@ import Labels from "./Labels";
|
|
|
|
import { CallbackFunction } from "../../../types";
|
|
|
|
import { CallbackFunction } from "../../../types";
|
|
|
|
import { getInitialValues, tabs, validationSchema } from "./form-utils";
|
|
|
|
import { getInitialValues, tabs, validationSchema } from "./form-utils";
|
|
|
|
import { classNames } from "../../../utils/styles";
|
|
|
|
import { classNames } from "../../../utils/styles";
|
|
|
|
|
|
|
|
import { Button, styled } from "@mui/joy";
|
|
|
|
|
|
|
|
|
|
|
|
interface ICreateNetworkModalProps {
|
|
|
|
interface ICreateNetworkModalProps {
|
|
|
|
onCreateNetwork: CallbackFunction;
|
|
|
|
onCreateNetwork: CallbackFunction;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Actions = styled("div")`
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
padding: ${({ theme }) => theme.spacing(1)};
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
const CreateNetworkModal: FunctionComponent<ICreateNetworkModalProps> = (
|
|
|
|
const CreateNetworkModal: FunctionComponent<ICreateNetworkModalProps> = (
|
|
|
|
props: ICreateNetworkModalProps
|
|
|
|
props: ICreateNetworkModalProps
|
|
|
|
): ReactElement => {
|
|
|
|
): ReactElement => {
|
|
|
|
@ -61,15 +70,11 @@ const CreateNetworkModal: FunctionComponent<ICreateNetworkModalProps> = (
|
|
|
|
{openTab === "Labels" && <Labels />}
|
|
|
|
{openTab === "Labels" && <Labels />}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="flex items-center justify-end px-4 py-3 border-t border-solid border-blueGray-200 rounded-b">
|
|
|
|
<Actions>
|
|
|
|
<button
|
|
|
|
<Button size="sm" variant="solid" onClick={formik.submitForm}>
|
|
|
|
className="btn-util"
|
|
|
|
Save
|
|
|
|
type="button"
|
|
|
|
</Button>
|
|
|
|
onClick={formik.submitForm}
|
|
|
|
</Actions>
|
|
|
|
>
|
|
|
|
|
|
|
|
Add
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</Formik>
|
|
|
|
</Formik>
|
|
|
|
|