Skip to content

Commit

Permalink
fix: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Jun 3, 2024
1 parent a8b5d55 commit 89ad351
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/components/sectionList/translation/TranslationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const TranslationForm = ({
{({ handleSubmit, submitting, submitError }) => (
<form onSubmit={handleSubmit}>
<>
<TranslationFormFields initialValues={initialValues} />
<TranslationFormFields />
<ButtonStrip>
<Button onClick={onClose}>Cancel</Button>
<Button primary type="submit" disabled={submitting}>
Expand All @@ -117,22 +117,10 @@ export const TranslationForm = ({
}

export const TranslationFormFields = () => {
<<<<<<< HEAD
const { initialValues } = useFormState({
subscription: { initialValues: true },
})

return Object.keys(initialValues).map((fieldName) => (
<Field<string | undefined>
key={fieldName}
name={fieldName}
component={InputFieldFF}
label={getTranslatedProperty(constantCaseToCamelCase(fieldName))}
/>
))
=======
const { initialValues } = useFormState()

return (
<>
{Object.keys(initialValues).map((fieldName) => (
Expand All @@ -148,5 +136,4 @@ export const TranslationFormFields = () => {
))}
</>
)
>>>>>>> cbe12cd (fix(list): translation dialog mutation fix)
}

0 comments on commit 89ad351

Please sign in to comment.