Run prettier on all files.

This commit is contained in:
Paul
2021-07-05 11:23:23 +01:00
parent 56058c1e75
commit 7bd33d8d34
181 changed files with 18084 additions and 13521 deletions

View File

@@ -1,40 +1,38 @@
import ComboBox from "../ui/ComboBox";
import { dispatch } from "../../redux";
import { connectState } from "../../redux/connector";
import { Language, LanguageEntry, Languages } from "../../context/Locale";
import { Language, Languages } from "../../context/Locale";
import ComboBox from "../ui/ComboBox";
type Props = {
locale: string;
locale: string;
};
export function LocaleSelector(props: Props) {
return (
<ComboBox
value={props.locale}
onChange={e =>
dispatch({
type: "SET_LOCALE",
locale: e.currentTarget.value as Language
})
}
>
{Object.keys(Languages).map(x => {
const l = Languages[x as keyof typeof Languages];
return (
<option value={x}>
{l.emoji} {l.display}
</option>
);
})}
</ComboBox>
);
return (
<ComboBox
value={props.locale}
onChange={(e) =>
dispatch({
type: "SET_LOCALE",
locale: e.currentTarget.value as Language,
})
}>
{Object.keys(Languages).map((x) => {
const l = Languages[x as keyof typeof Languages];
return (
<option value={x}>
{l.emoji} {l.display}
</option>
);
})}
</ComboBox>
);
}
export default connectState(
LocaleSelector,
state => {
return {
locale: state.locale
};
}
);
export default connectState(LocaleSelector, (state) => {
return {
locale: state.locale,
};
});