diff --git a/src/components/dialog/faultEvent/FaultEventCreation.styles.tsx b/src/components/dialog/faultEvent/FaultEventCreation.styles.tsx index ce08f7cc..b256cb3d 100644 --- a/src/components/dialog/faultEvent/FaultEventCreation.styles.tsx +++ b/src/components/dialog/faultEvent/FaultEventCreation.styles.tsx @@ -2,13 +2,6 @@ import { Theme } from "@mui/material"; import { makeStyles } from "tss-react/mui"; const useStyles = makeStyles()((theme: Theme) => ({ - menuTitle: { - backgroundColor: "#1976D256", - marginLeft: "-16px", - marginRight: "-16px", - paddingLeft: "8px", - borderBottom: "inset", - }, divForm: { flexGrow: 1, }, diff --git a/src/components/dialog/faultEvent/FaultEventCreation.tsx b/src/components/dialog/faultEvent/FaultEventCreation.tsx index 7c09ce43..66e39379 100644 --- a/src/components/dialog/faultEvent/FaultEventCreation.tsx +++ b/src/components/dialog/faultEvent/FaultEventCreation.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import { FormControl, InputLabel, MenuItem, Select, TextField, Typography } from "@mui/material"; +import { FormControl, InputLabel, MenuItem, Select, TextField } from "@mui/material"; import useStyles from "@components/dialog/faultEvent/FaultEventCreation.styles"; import { Controller } from "react-hook-form"; import { EventType, FaultEvent, GateType, gateTypeValues } from "@models/eventModel"; @@ -101,10 +101,6 @@ const FaultEventCreation = ({ } return ( <> - - {`${t("faultEventMenu.detailSectionTitle")}`} - -
+
{t("newFtaModal.type")} { @@ -173,6 +170,7 @@ const FaultEventCreation = ({ <> {eventTypeWatch === EventType.INTERMEDIATE && (
+
{t("newFtaModal.gateType")} +
{ {...register("faultTreeName")} helperText={!!useFormMethods.formState.errors.faultTreeName && t("newFtaModal.noSystemError")} /> +
+
diff --git a/src/components/editor/faultTree/menu/faultEvent/FaultEventShapeToolPane.styles.tsx b/src/components/editor/faultTree/menu/faultEvent/FaultEventShapeToolPane.styles.tsx index e6f8bc9e..ce41e4a1 100644 --- a/src/components/editor/faultTree/menu/faultEvent/FaultEventShapeToolPane.styles.tsx +++ b/src/components/editor/faultTree/menu/faultEvent/FaultEventShapeToolPane.styles.tsx @@ -9,6 +9,13 @@ const useStyles = makeStyles()((theme: Theme) => ({ color: theme.main.grey, padding: theme.spacing(10, 2), }, + menuTitle: { + backgroundColor: "#1976D256", + marginLeft: "-16px", + marginRight: "-16px", + paddingLeft: "8px", + borderBottom: "inset", + }, })); // TODO jss-to-tss-react codemod: usages of this hook outside of this file will not be converted. diff --git a/src/components/editor/faultTree/menu/faultEvent/FaultEventShapeToolPane.tsx b/src/components/editor/faultTree/menu/faultEvent/FaultEventShapeToolPane.tsx index ebb9c097..b85043e9 100644 --- a/src/components/editor/faultTree/menu/faultEvent/FaultEventShapeToolPane.tsx +++ b/src/components/editor/faultTree/menu/faultEvent/FaultEventShapeToolPane.tsx @@ -53,6 +53,10 @@ const FaultEventShapeToolPane = ({ data, refreshTree, formMethods }: Props) => { const editorPane = (isDisabled) => ( + + {`${t("faultEventMenu.detailSectionTitle")}`} + +