diff --git a/src/client/components/Admin/EditResults/EditResults.tsx b/src/client/components/Admin/EditResults/EditResults.tsx index 5d0caa3d..9d7b7dd6 100644 --- a/src/client/components/Admin/EditResults/EditResults.tsx +++ b/src/client/components/Admin/EditResults/EditResults.tsx @@ -92,7 +92,7 @@ const EditResults = () => { setQuestionId(event.target.value) } - const [selectedLanguage, setSelectedLanguage] = useState('fi') + const [selectedLanguage, setSelectedLanguage] = useState('en') const handleLanguageChange = (event: SelectChangeEvent) => { setSelectedLanguage(event.target.value as keyof Locales) } @@ -116,6 +116,10 @@ const EditResults = () => { return ( + { questions={survey.Questions} handleChange={handleQuestionChange} /> - {filteredResults.map((result) => ( diff --git a/src/client/components/Admin/EditResults/Select.tsx b/src/client/components/Admin/EditResults/Select.tsx index 3a812e33..96b597e3 100644 --- a/src/client/components/Admin/EditResults/Select.tsx +++ b/src/client/components/Admin/EditResults/Select.tsx @@ -6,6 +6,10 @@ import { Select, SelectChangeEvent, MenuItem, + FormLabel, + RadioGroup, + FormControlLabel, + Radio, } from '@mui/material' import { useTranslation } from 'react-i18next' @@ -24,29 +28,21 @@ const allSelection: InfoType = { const languages = [ { - id: 'fi', + id: 'en', label: { - fi: 'suomi', - sv: 'Finska', - en: 'Finnish', + fi: 'englanti', + sv: 'engelska', + en: 'English', }, }, { id: 'sv', label: { fi: 'ruotsi', - sv: 'Svenska', + sv: 'svenska', en: 'Swedish', }, }, - { - id: 'en', - label: { - fi: 'englanti', - sv: 'Engelska', - en: 'English', - }, - }, ] const sortDimensions = (dimensions: InfoType[], language: keyof Locales) => { @@ -155,20 +151,20 @@ export const LanguageSelect = ({ const language = i18n.language as keyof Locales return ( - + - {t('admin:selectLanguage')} - + )