Improve language selection

This commit is contained in:
Luck
2021-10-28 21:05:35 +01:00
parent cb21837f11
commit dc09fd8845
3 changed files with 82 additions and 44 deletions

View File

@@ -5,7 +5,7 @@ import history from 'history/browser';
import copy from 'copy-to-clipboard';
import { MenuButton, Button } from './Menu';
import { languageIds } from '../util/highlighting';
import { languages } from '../util/highlighting';
import themes from '../style/themes';
import { postUrl } from '../util/constants';
@@ -81,7 +81,7 @@ export default function EditorControls({
label="language"
value={language}
setValue={setLanguage}
ids={languageIds}
ids={languages}
/>
</Section>
<Section>