Skip to content

Commit 5f1daea

Browse files
committed
Remove wrapping from RootPage component
1 parent c03be5d commit 5f1daea

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

client/components/RootPage.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { prop } from '../theme';
33

44
const RootPage = styled.div`
55
height: 100%;
6-
flex-wrap: wrap;
76
display: flex;
87
flex-direction: column;
98
color: ${prop('primaryTextColor')};

client/modules/IDE/components/About.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import { Helmet } from 'react-helmet';
33
import { useTranslation } from 'react-i18next';
4+
import { Link } from 'react-router';
45
import SquareLogoIcon from '../../../images/p5js-square-logo.svg';
56
// import PlayIcon from '../../../images/play.svg';
67
import AsteriskIcon from '../../../images/p5-asterisk.svg';
@@ -148,24 +149,24 @@ function About(props) {
148149
</a>
149150
</p>
150151
<p className="about__content-column-list">
151-
<a href="/privacy-policy" target="_blank" rel="noopener noreferrer">
152+
<Link to="/privacy-policy">
152153
<AsteriskIcon
153154
className="about__content-column-asterisk"
154155
aria-hidden="true"
155156
focusable="false"
156157
/>
157158
Privacy Policy
158-
</a>
159+
</Link>
159160
</p>
160161
<p className="about__content-column-list">
161-
<a href="/terms-of-use" target="_blank" rel="noopener noreferrer">
162+
<Link to="/terms-of-use">
162163
<AsteriskIcon
163164
className="about__content-column-asterisk"
164165
aria-hidden="true"
165166
focusable="false"
166167
/>
167168
Terms of Use
168-
</a>
169+
</Link>
169170
</p>
170171
</div>
171172
<div className="about__footer">

client/modules/IDE/pages/FullView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function FullView(props) {
4646
};
4747
}, []);
4848
return (
49-
<RootPage style={{ flexWrap: 'initial' }}>
49+
<RootPage>
5050
<Helmet>
5151
<title>{project.name}</title>
5252
</Helmet>

client/routes.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ const routes = (store) => (
119119
{/* Mobile-only Routes */}
120120
<Route path="/preview" component={MobileSketchView} />
121121
<Route path="/preferences" component={MobilePreferences} />
122-
<Route path="privacy-policy" component={PrivacyPolicy} />
123-
<Route path="terms-of-use" component={TermsOfUse} />
122+
<Route path="/privacy-policy" component={PrivacyPolicy} />
123+
<Route path="/terms-of-use" component={TermsOfUse} />
124124
</Route>
125125
);
126126

0 commit comments

Comments
 (0)