changed language-picker select to react bootstraps version (#57)

changed language-picker select to react bootstraps version
fixes #52

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2020-05-24 12:18:12 +02:00 committed by GitHub
parent 47a88427da
commit 47ab753959
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
import React from "react";
import {useTranslation} from "react-i18next";
import moment from "moment";
import { Form } from "react-bootstrap";
const LanguagePicker: React.FC = () => {
const {i18n} = useTranslation();
@ -11,7 +12,13 @@ const LanguagePicker: React.FC = () => {
}
return (
<select className="mb-2" value={i18n.language} onChange={onChangeLang}>
<Form.Control
as="select"
size="sm"
className="mb-2 mx-auto w-auto"
value={i18n.language}
onChange={onChangeLang}
>
<option value="en">English</option>
<option value="zh-CN"></option>
<option value="zh-TW"></option>
@ -40,7 +47,7 @@ const LanguagePicker: React.FC = () => {
<option value="ar">العربية</option>
<option value="cs">Česky</option>
<option value="sk">Slovensky</option>
</select>
</Form.Control>
)
}