@@ -5,40 +5,6 @@ import { SelectCategory, SelectCategoryProps, SelectTags, SelectTagsProps } from
5
5
import CapturePhoto , { CapturePhotoProps } from './CapturePhoto'
6
6
import Description , { DescriptionProps } from './Description'
7
7
8
- const styles : StyleRulesCallback = ( ) => createStyles ( {
9
- addTaskContainer : {
10
- display : 'grid' ,
11
- gridTemplateRows : 'auto max-content'
12
- } ,
13
- container : {
14
- display : 'grid' ,
15
- gridTemplateRows : 'max-content auto'
16
- } ,
17
- content : {
18
- display : 'grid' ,
19
- gridTemplateRows : '50% 50%'
20
- } ,
21
- item : {
22
- justifyContent : 'center' ,
23
- maxWidth : '100%'
24
- }
25
- } )
26
-
27
- export interface AddTaskProps extends WithStyles < typeof styles > {
28
- categories : SelectCategoryProps [ 'categories' ] ,
29
- onClickCategory : SelectCategoryProps [ 'onClick' ] ,
30
- onClickTag : SelectTagsProps [ 'onClick' ] ,
31
- onSubmit : MouseEventHandler ,
32
- onCapturePhoto : CapturePhotoProps [ 'onCapture' ] ,
33
- onChangeDescription : DescriptionProps [ 'onChange' ] ,
34
- onChangeTab : ( e : ChangeEvent < { } > , value : number ) => void ,
35
- categoryValue : SelectCategoryProps [ 'value' ] ,
36
- descriptionValue : DescriptionProps [ 'value' ] ,
37
- image : CapturePhotoProps [ 'imgSrc' ] ,
38
- tags : SelectTagsProps [ 'tags' ] ,
39
- tabValue : boolean | number
40
- }
41
-
42
8
const AddTask : SFC < AddTaskProps > = ( {
43
9
classes : { addTaskContainer, container, content, item } ,
44
10
categories, onClickCategory, onChangeDescription, onChangeTab, onCapturePhoto,
@@ -74,4 +40,38 @@ const AddTask: SFC<AddTaskProps> = ({
74
40
</ div >
75
41
)
76
42
43
+ const styles : StyleRulesCallback = ( ) => createStyles ( {
44
+ addTaskContainer : {
45
+ display : 'grid' ,
46
+ gridTemplateRows : 'auto max-content'
47
+ } ,
48
+ container : {
49
+ display : 'grid' ,
50
+ gridTemplateRows : 'max-content auto'
51
+ } ,
52
+ content : {
53
+ display : 'grid' ,
54
+ gridTemplateRows : '50% 50%'
55
+ } ,
56
+ item : {
57
+ justifyContent : 'center' ,
58
+ maxWidth : '100%'
59
+ }
60
+ } )
61
+
62
+ export interface AddTaskProps extends WithStyles < typeof styles > {
63
+ categories : SelectCategoryProps [ 'categories' ] ,
64
+ onClickCategory : SelectCategoryProps [ 'onClick' ] ,
65
+ onClickTag : SelectTagsProps [ 'onClick' ] ,
66
+ onSubmit : MouseEventHandler ,
67
+ onCapturePhoto : CapturePhotoProps [ 'onCapture' ] ,
68
+ onChangeDescription : DescriptionProps [ 'onChange' ] ,
69
+ onChangeTab : ( e : ChangeEvent < { } > , value : number ) => void ,
70
+ categoryValue : SelectCategoryProps [ 'value' ] ,
71
+ descriptionValue : DescriptionProps [ 'value' ] ,
72
+ image : CapturePhotoProps [ 'imgSrc' ] ,
73
+ tags : SelectTagsProps [ 'tags' ] ,
74
+ tabValue : boolean | number
75
+ }
76
+
77
77
export default withStyles ( styles ) ( AddTask )
0 commit comments