Only show course description character count over 3000

This commit is contained in:
Tanner Collin 2020-01-17 04:16:42 +00:00
parent 94a296744c
commit 0f39901c76

View File

@ -44,7 +44,12 @@ function InstructorCourseEditor(props) {
/> />
<Form.Field> <Form.Field>
<label>Description {input.description ? input.description.length : 0} / 6000</label> <label>
Description
{input.description && input.description.length > 3000 && (
' — ' + (input.description.length+' / 6000')
)}
</label>
<ReactQuill <ReactQuill
value={input.description || ''} value={input.description || ''}
modules={modules} modules={modules}