Skip to content

Commit 3efa23e

Browse files
committed
Fix lints error
1 parent 93abf0e commit 3efa23e

File tree

5 files changed

+73
-73
lines changed

5 files changed

+73
-73
lines changed

src/components/content/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

2929
Content.propTypes = {
30-
children: PropTypes.node.isRequired
30+
children: PropTypes.node.isRequired,
3131
};
3232

3333
export default Content;

src/components/content_body/index.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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

4949
ContentBody.propTypes = {
50-
title: PropTypes.string.isRequired,
51-
children: PropTypes.node.isRequired
50+
title: PropTypes.string.isRequired,
51+
children: PropTypes.node.isRequired,
5252
};
5353

5454
export default ContentBody;

src/components/content_year/index.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff 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

5353
ContentYear.defaultProps = {
54-
current: false
54+
current: false,
5555
};
5656

5757
ContentYear.propTypes = {
58-
startYear: PropTypes.number.isRequired,
59-
current: PropTypes.bool
58+
startYear: PropTypes.number.isRequired,
59+
current: PropTypes.bool,
6060
};
6161

6262
export default ContentYear;

src/components/description/index.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff 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

4747
Description.propTypes = {
48-
text: PropTypes.string.isRequired,
49-
optional: PropTypes.string
48+
text: PropTypes.string.isRequired,
49+
optional: PropTypes.string,
5050
};
5151

5252
Description.defaultProps = {
53-
optional: ''
53+
optional: '',
5454
};
5555

5656
export default Description;

src/components/timeline/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

2020
Timeline.propTypes = {
21-
children: PropTypes.node.isRequired
21+
children: PropTypes.node.isRequired,
2222
};
2323

2424
export default Timeline;

0 commit comments

Comments
 (0)