File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import PropTypes from "prop-types";
5
5
6
6
const CasesPageTitle = props => < h1 id = "title" > { props . stationName } </ h1 > ;
7
7
8
- export default CasesPageTitle ;
9
-
10
8
CasesPageTitle . propTypes = {
11
9
stationName : PropTypes . string
12
10
} ;
11
+
12
+ export default CasesPageTitle ;
Original file line number Diff line number Diff line change @@ -17,18 +17,16 @@ const StyledCase = styled.div`
17
17
border: none;
18
18
` ;
19
19
20
- export default class AddNewBanner extends React . Component {
21
- render ( ) {
22
- return (
23
- < Link to = { `/${ this . props . exam } /${ this . props . station } /add-case` } >
24
- < StyledCase onClick = { this . props . submitStation } > Add New</ StyledCase >
25
- </ Link >
26
- ) ;
27
- }
28
- }
20
+ const AddNewBanner = props => (
21
+ < Link to = { `/${ props . exam } /${ props . station } /add-case` } >
22
+ < StyledCase onClick = { props . submitStation } > Add New</ StyledCase >
23
+ </ Link >
24
+ ) ;
29
25
30
26
AddNewBanner . propTypes = {
31
27
exam : PropTypes . string ,
32
28
station : PropTypes . string ,
33
29
submitStation : PropTypes . func
34
30
} ;
31
+
32
+ export default AddNewBanner ;
You can’t perform that action at this time.
0 commit comments