+
{children}
void;
onDone: (tr: Transformation) => void;
+ isNewTransformation?: boolean;
}
const validationSchema = yup.object({
@@ -77,7 +79,12 @@ function prepareLabelFields(
// enum with only one value for the moment
const TransformationTypes = [{ value: "custom", label: "Custom DBT" }];
-const TransformationForm: React.FC = ({ transformation, onCancel, onDone }) => {
+const TransformationForm: React.FC = ({
+ transformation,
+ onCancel,
+ onDone,
+ isNewTransformation,
+}) => {
const formatMessage = useIntl().formatMessage;
const operationService = useGetService("OperationService");
@@ -89,9 +96,11 @@ const TransformationForm: React.FC = ({ transformation, onC
onDone(values);
},
});
+ const { dirty } = useFormikContext();
return (
<>
+