File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { bindActionCreators } from 'redux';
8
8
import E404 from '../404/' ;
9
9
import ProfileComponent from '../../components/profile' ;
10
10
import _get from 'lodash/get' ;
11
+ import LoadingLarge from '../../components/loading/Large' ;
11
12
12
13
class Profile extends React . Component {
13
14
static propTypes = {
@@ -37,12 +38,14 @@ class Profile extends React.Component {
37
38
}
38
39
39
40
render ( ) {
40
- const { profile, self, submits } = this . props ;
41
+ const { profile, self, submits, username } = this . props ;
42
+
41
43
return (
42
- < div >
43
- { ! this . state . loading && this . props . profile && < ProfileComponent profile = { profile } self = { self } submits = { submits } /> }
44
- { ! this . state . loading && ! this . props . profile && < E404 /> }
45
- </ div > ) ;
44
+ < LoadingLarge loading = { this . state . loading } title = { username ? `Loading profile for ${ username } ` : '' } >
45
+ { this . props . profile && < ProfileComponent profile = { profile } self = { self } submits = { submits } /> }
46
+ { ! this . props . profile && < E404 /> }
47
+ </ LoadingLarge >
48
+ ) ;
46
49
}
47
50
}
48
51
You can’t perform that action at this time.
0 commit comments