File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ class Weather extends React.Component {
48
48
49
49
function renderMessage ( ) {
50
50
if ( isLoading ) {
51
- return < h3 > Fetching weather...</ h3 > ;
51
+ return < h3 className = "text-center" > Fetching weather...</ h3 > ;
52
52
} else if ( temp && location ) {
53
53
return < WeatherMessage location = { location } temp = { temp } /> ;
54
54
}
55
55
}
56
56
57
57
return (
58
58
< div >
59
- < h2 > Get Weather</ h2 >
59
+ < h1 className = "text-center" > Get Weather</ h1 >
60
60
< WeatherForm onSearch = { this . handleSearch } />
61
61
{ renderMessage ( ) }
62
62
</ div >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ var WeatherForm = React.createClass({
19
19
< div >
20
20
< form onSubmit = { this . onFormSubmit } >
21
21
< input type = "text" ref = "location" placeholder = "Enter city name" />
22
- < button > Get Weather</ button >
22
+ < button className = "button expanded hollow" > Get Weather</ button >
23
23
</ form >
24
24
</ div >
25
25
) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var React = require('react');
3
3
var WeatherMessage = ( { temp, location} ) => {
4
4
return (
5
5
< div >
6
- < h3 > It's { temp } in { location } .</ h3 >
6
+ < h3 className = "text-center" > It's { temp } in { location } .</ h3 >
7
7
</ div >
8
8
) ;
9
9
} ;
You can’t perform that action at this time.
0 commit comments