-
Notifications
You must be signed in to change notification settings - Fork 51
/
RejectionsForm.story.js
61 lines (60 loc) · 2.81 KB
/
RejectionsForm.story.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// @ts-nocheck
import React from 'react'
import { storiesOf } from '@storybook/react'
import { Button } from 'react-bootstrap'
import { Icon, TextInput } from '../../components'
import RejectionsForm from '.'
import { MINOR, MAJOR, CRITICAL } from "./index";
storiesOf('RejectionsForm', module)
.add('read only', () => (
<RejectionsForm
commentRequired={false}
criteriaPlaceholder='Format (mismatches, white-spaces, tag error or missing, special character, numeric format, truncated, etc.)'
priority={MINOR} textState='text-info' />
))
.add('commentRequired', () => (
<RejectionsForm
className='active'
commentRequired={true}
criteriaPlaceholder='Format (mismatches, white-spaces, tag error or missing, special character, numeric format, truncated, etc.)'
priority={MINOR} textState='text-info' />
))
.add('Admin screen', () => (
<div className='container'>
<h1>Reject translations settings</h1>
<RejectionsForm
commentRequired={false}
criteriaPlaceholder='Translation Errors (terminology, mistranslated, addition, omission, un-localized, do not translate, etc)'
priority={CRITICAL} textState='text-danger' />
<RejectionsForm
commentRequired={true}
className='active'
criteriaPlaceholder='Language Quality (grammar, spelling, punctuation, typo, ambiguous wording, product name, sentence structuring, readability, word choice, not natural, too literal, style and tone, etc)'
priority={MAJOR} textState='text-warning' />
<RejectionsForm
commentRequired={false}
criteriaPlaceholder='Consistency (inconsistent style or vocabulary, brand inconsistency, etc.)'
priority={MAJOR} textState='text-warning' />
<RejectionsForm
commentRequired={false}
criteriaPlaceholder='Style Guide & Glossary Violations'
priority={MINOR} textState='text-info' />
<RejectionsForm
commentRequired={false}
criteriaPlaceholder='Format (mismatches, white-spaces, tag error or missing, special character, numeric format, truncated, etc.)'
priority={MINOR} textState='text-info' />
<RejectionsForm
commentRequired={true}
className='active'
criteriaPlaceholder='Other (reason may be in comment section/history if necessary)'
priority={CRITICAL} textState='text-danger' />
<div className='rejection-btns'>
<Button bsStyle='primary' className='btn-left'>
<Icon name='plus' className='s1' /> Add review criteria
</Button>
<Button bsStyle='info'>
<Icon name='tick' className='s1' /> Save changes
</Button>
</div>
</div>
))