File tree Expand file tree Collapse file tree 5 files changed +73
-73
lines changed Expand file tree Collapse file tree 5 files changed +73
-73
lines changed Original file line number Diff line number Diff line change @@ -16,18 +16,18 @@ const ContainerComponent = styled.div`
1616 }
1717` ;
1818
19- const Content = props => {
20- const { children } = props ;
19+ const Content = ( props ) => {
20+ const { children } = props ;
2121
22- return (
23- < ContainerComponent className = "content-component" >
24- { children }
25- </ ContainerComponent >
26- ) ;
22+ return (
23+ < ContainerComponent className = "content-component" >
24+ { children }
25+ </ ContainerComponent >
26+ ) ;
2727} ;
2828
2929Content . propTypes = {
30- children : PropTypes . node . isRequired
30+ children : PropTypes . node . isRequired ,
3131} ;
3232
3333export default Content ;
Original file line number Diff line number Diff line change @@ -33,22 +33,22 @@ const BodyComponentTitle = styled.p`
3333 text-align: left;
3434` ;
3535
36- const ContentBody = props => {
37- const { title, children } = props ;
38-
39- return (
40- < BodyComponent className = "body-component" >
41- < BodyComponentTitle className = "title-body-component" >
42- { title }
43- </ BodyComponentTitle >
44- { children }
45- </ BodyComponent >
46- ) ;
36+ const ContentBody = ( props ) => {
37+ const { title, children } = props ;
38+
39+ return (
40+ < BodyComponent className = "body-component" >
41+ < BodyComponentTitle className = "title-body-component" >
42+ { title }
43+ </ BodyComponentTitle >
44+ { children }
45+ </ BodyComponent >
46+ ) ;
4747} ;
4848
4949ContentBody . propTypes = {
50- title : PropTypes . string . isRequired ,
51- children : PropTypes . node . isRequired
50+ title : PropTypes . string . isRequired ,
51+ children : PropTypes . node . isRequired ,
5252} ;
5353
5454export default ContentBody ;
Original file line number Diff line number Diff line change @@ -27,36 +27,36 @@ const YearComponentItem = styled.div`
2727 margin-bottom: 8px;
2828` ;
2929
30- const ContentYear = props => {
31- const { startYear, current } = props ;
32-
33- return (
34- < YearComponent className = "year-component" >
35- { current ? (
36- < >
37- < YearComponentItem className = "item-year-component" >
38- { new Date ( ) . getFullYear ( ) }
39- </ YearComponentItem >
40- < YearComponentItem className = "item-year-component" >
41- { startYear }
42- </ YearComponentItem >
43- </ >
44- ) : (
45- < YearComponentItem className = "item-year-component" >
46- { startYear }
47- </ YearComponentItem >
48- ) }
49- </ YearComponent >
50- ) ;
30+ const ContentYear = ( props ) => {
31+ const { startYear, current } = props ;
32+
33+ return (
34+ < YearComponent className = "year-component" >
35+ { current ? (
36+ < >
37+ < YearComponentItem className = "item-year-component" >
38+ { new Date ( ) . getFullYear ( ) }
39+ </ YearComponentItem >
40+ < YearComponentItem className = "item-year-component" >
41+ { startYear }
42+ </ YearComponentItem >
43+ </ >
44+ ) : (
45+ < YearComponentItem className = "item-year-component" >
46+ { startYear }
47+ </ YearComponentItem >
48+ ) }
49+ </ YearComponent >
50+ ) ;
5151} ;
5252
5353ContentYear . defaultProps = {
54- current : false
54+ current : false ,
5555} ;
5656
5757ContentYear . propTypes = {
58- startYear : PropTypes . number . isRequired ,
59- current : PropTypes . bool
58+ startYear : PropTypes . number . isRequired ,
59+ current : PropTypes . bool ,
6060} ;
6161
6262export default ContentYear ;
Original file line number Diff line number Diff line change @@ -25,32 +25,32 @@ const DescriptionComponentTextOptional = styled.span`
2525 }
2626` ;
2727
28- const Description = props => {
29- const { text, optional } = props ;
30-
31- return (
32- < DescriptionComponent >
33- < DescriptionComponentText className = "text-description-component" >
34- { text }
35- </ DescriptionComponentText >
36- { optional ? (
37- < DescriptionComponentTextOptional className = "optional-description-component" >
38- { optional }
39- </ DescriptionComponentTextOptional >
40- ) : (
41- ''
42- ) }
43- </ DescriptionComponent >
44- ) ;
28+ const Description = ( props ) => {
29+ const { text, optional } = props ;
30+
31+ return (
32+ < DescriptionComponent >
33+ < DescriptionComponentText className = "text-description-component" >
34+ { text }
35+ </ DescriptionComponentText >
36+ { optional ? (
37+ < DescriptionComponentTextOptional className = "optional-description-component" >
38+ { optional }
39+ </ DescriptionComponentTextOptional >
40+ ) : (
41+ ''
42+ ) }
43+ </ DescriptionComponent >
44+ ) ;
4545} ;
4646
4747Description . propTypes = {
48- text : PropTypes . string . isRequired ,
49- optional : PropTypes . string
48+ text : PropTypes . string . isRequired ,
49+ optional : PropTypes . string ,
5050} ;
5151
5252Description . defaultProps = {
53- optional : ''
53+ optional : '' ,
5454} ;
5555
5656export default Description ;
Original file line number Diff line number Diff line change @@ -7,18 +7,18 @@ const TimelineComponent = styled.div`
77 width: 100%;
88` ;
99
10- const Timeline = props => {
11- const { children } = props ;
10+ const Timeline = ( props ) => {
11+ const { children } = props ;
1212
13- return (
14- < TimelineComponent className = "timeline-component" >
15- { children }
16- </ TimelineComponent >
17- ) ;
13+ return (
14+ < TimelineComponent className = "timeline-component" >
15+ { children }
16+ </ TimelineComponent >
17+ ) ;
1818} ;
1919
2020Timeline . propTypes = {
21- children : PropTypes . node . isRequired
21+ children : PropTypes . node . isRequired ,
2222} ;
2323
2424export default Timeline ;
You can’t perform that action at this time.
0 commit comments