diff --git a/frontend/src/components/projectEdit/descriptionForm.js b/frontend/src/components/projectEdit/descriptionForm.js index b6ed34387c..f93cd471bf 100644 --- a/frontend/src/components/projectEdit/descriptionForm.js +++ b/frontend/src/components/projectEdit/descriptionForm.js @@ -1,8 +1,9 @@ import React, { useContext } from 'react'; import { StateContext, styleClasses } from '../../views/projectEdit'; +import { InputLocale } from './inputLocale'; -export const DescriptionForm = () => { +export const DescriptionForm = ({ languages }) => { const { projectInfo, setProjectInfo } = useContext(StateContext); const handleChange = event => { @@ -59,36 +60,19 @@ export const DescriptionForm = () => {
Put here anything that can be useful to users while taking a task. {'{x}'}, {'{y}'} and{' '} {'{z}'} diff --git a/frontend/src/components/projectEdit/settingsForm.js b/frontend/src/components/projectEdit/settingsForm.js index 63056e7a74..1f5ebdf526 100644 --- a/frontend/src/components/projectEdit/settingsForm.js +++ b/frontend/src/components/projectEdit/settingsForm.js @@ -3,7 +3,7 @@ import React, { useContext } from 'react'; import { getEditors } from '../../utils/editorsList'; import { StateContext, styleClasses, handleCheckButton } from '../../views/projectEdit'; -export const SettingsForm = () => { +export const SettingsForm = ({ languages, defaultLocale }) => { const { projectInfo, setProjectInfo } = useContext(StateContext); const handleMappingEditors = event => { @@ -18,9 +18,23 @@ export const SettingsForm = () => { setProjectInfo({ ...projectInfo, validationEditors: editors }); }; + const updateDefaultLocale = event => { + setProjectInfo({ ...projectInfo, defaultLocale: event.target.value }); + }; + const editors = getEditors(); return (