Skip to content

Commit 54f0cc3

Browse files
committed
chore: change to default export
1 parent 87d45b1 commit 54f0cc3

File tree

2 files changed

+93
-91
lines changed

2 files changed

+93
-91
lines changed

src/views/CodeOfConduct/CodeOfConduct.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const StyleMoreIcon = styled.img`
8080
}
8181
`;
8282

83-
export const CodeOfConduct: FC<React.PropsWithChildren> = () => {
83+
const CodeOfConduct: FC<React.PropsWithChildren> = () => {
8484
const { width } = useWindowSize();
8585

8686
useDocumentTitleUpdater("Code of Conduct", data.edition);
@@ -302,5 +302,5 @@ export const CodeOfConduct: FC<React.PropsWithChildren> = () => {
302302
</>
303303
);
304304
};
305-
306305
CodeOfConduct.displayName = "CodeOfConduct";
306+
export default CodeOfConduct;

src/views/Travel/Accommodation.tsx

Lines changed: 91 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -5,114 +5,114 @@ import { BIG_BREAKPOINT } from "../../constants/BreakPoints";
55

66
const StyledAccommodation = styled.div`
77
{
8-
text-align: left;
9-
padding: 10px 40px;
10-
background-color: ${Color.LIGHT_BLUE};
11-
color: ${Color.WHITE};
8+
text-align: left;
9+
padding: 10px 40px;
10+
background-color: ${Color.LIGHT_BLUE};
11+
color: ${Color.WHITE};
1212
}
1313
14-
div.description ul {
15-
margin-top: 10px;
16-
margin-bottom: 10px;
17-
margin-left: 40px;
18-
}
19-
20-
ul a {
21-
text-decoration: none;
22-
margin-left: 10px;
23-
color: ${Color.WHITE};
24-
}
25-
26-
div.image {
27-
margin-top: 10px;
28-
background-color: ${Color.DARK_BLUE};
29-
text-align: center;
30-
31-
img {
32-
margin-top: 5px;
33-
width: 20rem;
34-
}
35-
}
36-
37-
div.description {
38-
background-color: ${Color.DARK_BLUE};
39-
padding-left: 5px;
14+
div.description ul {
15+
margin-top: 10px;
16+
margin-bottom: 10px;
17+
margin-left: 40px;
18+
}
4019
41-
p {
42-
padding: 5px;
43-
}
44-
45-
strong {
46-
color: ${Color.YELLOW};
47-
}
20+
ul a {
21+
text-decoration: none;
22+
margin-left: 10px;
23+
color: ${Color.WHITE};
24+
}
4825
49-
a {
50-
color: ${Color.YELLOW};
51-
}
52-
}
26+
div.image {
27+
margin-top: 10px;
28+
background-color: ${Color.DARK_BLUE};
29+
text-align: center;
5330
54-
.container {
55-
max-width: 1200px;
56-
margin: 0 auto;
57-
padding: 20px;
31+
img {
32+
margin-top: 5px;
33+
width: 20rem;
5834
}
35+
}
5936
60-
h1 {
61-
font-size: 2.25rem;
62-
text-align: center;
63-
margin-top: 0;
64-
margin-bottom: 30px;
65-
color: #002454;
66-
}
37+
div.description {
38+
background-color: ${Color.DARK_BLUE};
39+
padding-left: 5px;
6740
68-
.accommodation {
69-
background-color: #fff;
70-
border: 1px solid #ccc;
71-
margin-bottom: 1.25rem;
72-
padding: 1.25rem;
73-
display: flex;
74-
align-items: center;
75-
border-radius: 95% 5% 95% 5% / 5% 100% 0 95%;
76-
@media (max-width: ${BIG_BREAKPOINT}px) {
77-
flex-direction: column;
78-
}
41+
p {
42+
padding: 5px;
7943
}
8044
81-
.accommodation img {
82-
max-width: 300px;
83-
margin-right: 1.25rem;
84-
border-radius: 90% 10% 90% 10% / 0 100% 0 100%;
85-
86-
@media (max-width: ${BIG_BREAKPOINT}px) {
87-
max-width: 100%;
88-
height: auto;
89-
}
45+
strong {
46+
color: ${Color.YELLOW};
9047
}
9148
92-
.accommodation h2 {
93-
margin-top: 0;
94-
margin-bottom: 1rem;
95-
font-size: 1.5rem;
49+
a {
50+
color: ${Color.YELLOW};
9651
}
97-
98-
h2 a {
99-
color: #002454;
100-
margin-bottom: 100px;
52+
}
53+
54+
.container {
55+
max-width: 1200px;
56+
margin: 0 auto;
57+
padding: 20px;
58+
}
59+
60+
h1 {
61+
font-size: 2.25rem;
62+
text-align: center;
63+
margin-top: 0;
64+
margin-bottom: 30px;
65+
color: #002454;
66+
}
67+
68+
.accommodation {
69+
background-color: #fff;
70+
border: 1px solid #ccc;
71+
margin-bottom: 1.25rem;
72+
padding: 1.25rem;
73+
display: flex;
74+
align-items: center;
75+
border-radius: 95% 5% 95% 5% / 5% 100% 0 95%;
76+
@media (max-width: ${BIG_BREAKPOINT}px) {
77+
flex-direction: column;
10178
}
79+
}
10280
103-
.accommodation p {
104-
margin-bottom: 0;
105-
color: #002454;
106-
font-size: 1rem;
107-
}
81+
.accommodation img {
82+
max-width: 300px;
83+
margin-right: 1.25rem;
84+
border-radius: 90% 10% 90% 10% / 0 100% 0 100%;
10885
109-
.accommodation ul {
110-
color: #002454;
111-
padding-left: 30px;
86+
@media (max-width: ${BIG_BREAKPOINT}px) {
87+
max-width: 100%;
88+
height: auto;
11289
}
90+
}
91+
92+
.accommodation h2 {
93+
margin-top: 0;
94+
margin-bottom: 1rem;
95+
font-size: 1.5rem;
96+
}
97+
98+
h2 a {
99+
color: #002454;
100+
margin-bottom: 100px;
101+
}
102+
103+
.accommodation p {
104+
margin-bottom: 0;
105+
color: #002454;
106+
font-size: 1rem;
107+
}
108+
109+
.accommodation ul {
110+
color: #002454;
111+
padding-left: 30px;
112+
}
113113
`;
114114

115-
export const Accommodation: FC<React.PropsWithChildren<unknown>> = () => {
115+
const Accommodation: FC<React.PropsWithChildren<unknown>> = () => {
116116
return (
117117
<StyledAccommodation>
118118
<div className="container">
@@ -150,3 +150,5 @@ export const Accommodation: FC<React.PropsWithChildren<unknown>> = () => {
150150
</StyledAccommodation>
151151
);
152152
};
153+
154+
export default Accommodation;

0 commit comments

Comments
 (0)