forked from nonsensical-dev/zenyx-engine
add rudimentary Text editor
This commit is contained in:
parent
ede3c3e906
commit
818456af5e
6 changed files with 229 additions and 0 deletions
18
engine/text_editor/LanguageDropdown.js
Normal file
18
engine/text_editor/LanguageDropdown.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import React from "react";
|
||||
import Select from "react-select";
|
||||
import { customStyles } from "../constants/customStyles";
|
||||
import { languageOptions } from "../constants/languageOptions";
|
||||
|
||||
const LanguagesDropdown = ({ onSelectChange }) => {
|
||||
return (
|
||||
<Select
|
||||
placeholder={`Filter By Category`}
|
||||
options={languageOptions}
|
||||
styles={customStyles}
|
||||
defaultValue={languageOptions[0]}
|
||||
onChange={(selectedOption) => onSelectChange(selectedOption)}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default LanguagesDropdown;
|
Loading…
Add table
Add a link
Reference in a new issue