Skip to content

Commit f51af61

Browse files
committed
RootPage: update to named export and add props interface
1 parent 5f511f6 commit f51af61

File tree

12 files changed

+16
-14
lines changed

12 files changed

+16
-14
lines changed

client/components/RootPage.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import styled from 'styled-components';
22
import { prop } from '../theme';
33

4-
const RootPage = styled.div`
4+
interface RootPageProps {
5+
fixedHeight?: string;
6+
}
7+
8+
export const RootPage = styled.div<RootPageProps>`
59
min-height: 100vh;
610
height: ${({ fixedHeight }) => fixedHeight || '100vh'};
711
display: flex;
@@ -21,5 +25,3 @@ const RootPage = styled.div`
2125
}
2226
}
2327
`;
24-
25-
export default RootPage;

client/modules/About/pages/About.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121

2222
import { ContactSectionLinks, AboutSectionInfo } from '../statics/aboutData';
2323
import Nav from '../../IDE/components/Header/Nav';
24-
import RootPage from '../../../components/RootPage';
24+
import { RootPage } from '../../../components/RootPage';
2525
import packageData from '../../../../package.json';
2626

2727
import HeartIcon from '../../../images/heart.svg';

client/modules/IDE/pages/FullView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
MessageTypes
1313
} from '../../../utils/dispatcher';
1414
import useInterval from '../hooks/useInterval';
15-
import RootPage from '../../../components/RootPage';
15+
import { RootPage } from '../../../components/RootPage';
1616

1717
function FullView() {
1818
const dispatch = useDispatch();

client/modules/IDE/pages/IDEView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
getProject
1717
} from '../actions/project';
1818
import { getIsUserOwner } from '../selectors/users';
19-
import RootPage from '../../../components/RootPage';
19+
import { RootPage } from '../../../components/RootPage';
2020
import Header from '../components/Header';
2121
import FloatingActionButton from '../components/FloatingActionButton';
2222
import Editor from '../components/Editor';

client/modules/Legal/pages/Legal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Helmet from 'react-helmet';
55
import { useTranslation } from 'react-i18next';
66
import styled from 'styled-components';
77
import { RouterTab } from '../../../common/RouterTab';
8-
import RootPage from '../../../components/RootPage';
8+
import { RootPage } from '../../../components/RootPage';
99
import { remSize } from '../../../theme';
1010
import Loader from '../../App/components/loader';
1111
import Nav from '../../IDE/components/Header/Nav';

client/modules/User/pages/CollectionView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { useParams } from 'react-router-dom';
33
import Nav from '../../IDE/components/Header/Nav';
4-
import RootPage from '../../../components/RootPage';
4+
import { RootPage } from '../../../components/RootPage';
55
import Collection from '../components/Collection';
66

77
const CollectionView = () => {

client/modules/User/pages/DashboardView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import AssetList from '../../IDE/components/AssetList';
1010
import AssetSize from '../../IDE/components/AssetSize';
1111
import CollectionList from '../../IDE/components/CollectionList';
1212
import SketchList from '../../IDE/components/SketchList';
13-
import RootPage from '../../../components/RootPage';
13+
import { RootPage } from '../../../components/RootPage';
1414
import { newProject } from '../../IDE/actions/project';
1515
import {
1616
CollectionSearchbar,

client/modules/User/pages/EmailVerificationView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useLocation, useHistory } from 'react-router-dom';
44
import { useSelector, useDispatch } from 'react-redux';
55
import { useTranslation } from 'react-i18next';
66
import { verifyEmailConfirmation } from '../actions';
7-
import RootPage from '../../../components/RootPage';
7+
import { RootPage } from '../../../components/RootPage';
88
import Nav from '../../IDE/components/Header/Nav';
99

1010
const EmailVerificationView = () => {

client/modules/User/pages/LoginView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
55
import LoginForm from '../components/LoginForm';
66
import SocialAuthButton from '../components/SocialAuthButton';
77
import Nav from '../../IDE/components/Header/Nav';
8-
import RootPage from '../../../components/RootPage';
8+
import { RootPage } from '../../../components/RootPage';
99

1010
function LoginView() {
1111
const { t } = useTranslation();

client/modules/User/pages/NewPasswordView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useParams } from 'react-router-dom';
77
import NewPasswordForm from '../components/NewPasswordForm';
88
import { validateResetPasswordToken } from '../actions';
99
import Nav from '../../IDE/components/Header/Nav';
10-
import RootPage from '../../../components/RootPage';
10+
import { RootPage } from '../../../components/RootPage';
1111

1212
function NewPasswordView() {
1313
const { t } = useTranslation();

0 commit comments

Comments
 (0)