@@ -58,8 +58,8 @@ class App extends React.Component {
58
58
59
59
return getUserLog ( { author, since, path } )
60
60
. then ( ( stdout ) => {
61
- return normolize ( stdout , {
62
- firstHour : this . props . firstHour
61
+ return normolize ( stdout , {
62
+ firstHour : this . props . firstHour
63
63
} ) ;
64
64
} )
65
65
. then ( data => {
@@ -71,7 +71,7 @@ class App extends React.Component {
71
71
} ) ;
72
72
73
73
await Promise . all ( promises ) ;
74
-
74
+
75
75
this . setState ( {
76
76
...this . state ,
77
77
isLading : false
@@ -81,15 +81,15 @@ class App extends React.Component {
81
81
. catch ( this . handleError . bind ( this ) ) ;
82
82
}
83
83
84
- render ( ) {
84
+ render ( ) {
85
85
86
86
const { errors, isLading, out, loading } = this . state ;
87
87
88
88
const isErrors = errors . length ;
89
89
const isContent = Object . keys ( out ) . length ;
90
90
91
- return (
92
- < Box flexDirection = "column" >
91
+ return (
92
+ < Box flexDirection = "column" >
93
93
{ isLading ? (
94
94
< Box >
95
95
< Color green >
@@ -99,29 +99,29 @@ class App extends React.Component {
99
99
</ Box >
100
100
) : (
101
101
< >
102
- { isContent ? (
103
- < >
104
- { Object . keys ( out ) . map ( day => (
105
- < Box flexDirection = "column" key = { day } >
106
- { Object . keys ( out [ day ] ) . map ( project => (
107
- < Project key = { project } day = { day } name = { project } data = { out [ day ] [ project ] } > </ Project >
102
+ { isContent ? (
103
+ < >
104
+ { Object . keys ( out ) . map ( day => (
105
+ < Box flexDirection = "column" key = { day } >
106
+ { Object . keys ( out [ day ] ) . map ( project => (
107
+ < Project key = { project } day = { day } name = { project } data = { out [ day ] [ project ] } > </ Project >
108
+ ) ) }
109
+ </ Box >
108
110
) ) }
111
+ </ >
112
+ ) : (
113
+ < Box >
114
+ { ! isErrors ? ( < Color blueBright > Not Found</ Color > ) : null }
109
115
</ Box >
110
- ) ) }
111
- </ >
112
- ) : (
113
- < Box >
114
- { ! isErrors ? ( < Color blueBright > Not Found</ Color > ) : null }
115
- </ Box >
116
- ) }
116
+ ) }
117
117
118
- { isErrors ? ( < Errors errors = { errors } > </ Errors > ) : null }
118
+ { isErrors ? ( < Errors errors = { errors } > </ Errors > ) : null }
119
119
120
120
</ >
121
121
) }
122
- </ Box >
123
- ) ;
124
- }
122
+ </ Box >
123
+ ) ;
124
+ }
125
125
}
126
126
127
127
App . propTypes = {
0 commit comments