diff options
| author | 2021-03-07 16:05:47 +0300 | |
|---|---|---|
| committer | 2021-03-07 16:05:47 +0300 | |
| commit | b92baa668465c61170ca9cc8630c4f4b8bac7b71 (patch) | |
| tree | 173870708ff7454a52cf3200a85b5e4788cb9a3b /src/components | |
| parent | Merge pull request #174 from python-discord/dependabot/npm_and_yarn/workbox-w... (diff) | |
Makes Code Inputs TextAreas
Changes the display of code to textareas until a proper solution is
implemented.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/InputTypes/index.tsx | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/src/components/InputTypes/index.tsx b/src/components/InputTypes/index.tsx index bc65248..c6a83f1 100644 --- a/src/components/InputTypes/index.tsx +++ b/src/components/InputTypes/index.tsx @@ -1,5 +1,4 @@  import Checkbox from "./Checkbox"; -import Code from "./Code";  import Radio from "./Radio";  import Range from "./Range";  import Select from "./Select"; @@ -38,6 +37,7 @@ export default function create_input({ question, public_state }: QuestionProp, h      /* eslint-disable react/react-in-jsx-scope */      switch (question.type) { +        case QuestionType.Code: // TODO: Implement          case QuestionType.TextArea:              result = <TextArea handler={handler} valid={valid} onBlurHandler={onBlurHandler} focus_ref={focus_ref}/>;              break; @@ -62,11 +62,6 @@ export default function create_input({ question, public_state }: QuestionProp, h              result = <Range question_id={question.id} options={options} handler={handler} required={question.required} onBlurHandler={onBlurHandler}/>;              break; -        case QuestionType.Code: -            // TODO: Implement -            result = <Code handler={handler}/>; -            break; -          default:              result = <TextArea handler={handler} valid={valid} onBlurHandler={onBlurHandler} focus_ref={focus_ref}/>;      } | 
