1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

test profile page

This commit is contained in:
Fedor Katurov 2019-12-03 17:18:18 +07:00
parent 0d64d847a1
commit 718bb8c9c7
4 changed files with 17 additions and 1 deletions

View file

@ -14,6 +14,7 @@ export const URLS = {
},
NODE_URL: (id: number | string) => `/post${id}`,
PROFILE: (username: string) => `/~${username}`,
PROFILE_PAGE: `/profile`,
};
export const PRESETS = {

View file

@ -18,7 +18,7 @@ import { NodeLayout } from './node/NodeLayout';
import { BottomContainer } from '~/containers/main/BottomContainer';
import { BorisLayout } from './node/BorisLayout';
import { ErrorNotFound } from './pages/ErrorNotFound';
import { ProfileLayout } from './profile/ProfileLayout';
import { ProfilePage } from './profile/ProfilePage';
const mapStateToProps = state => ({
modal: selectModal(state),
@ -44,6 +44,7 @@ const Component: FC<IProps> = ({ modal: { is_shown } }) => {
<Route path={URLS.NODE_URL(':id')} component={NodeLayout} />
<Route path={URLS.BORIS} component={BorisLayout} />
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
<Route path={URLS.PROFILE_PAGE} component={ProfilePage} />
<Redirect to="/" />
</Switch>

View file

@ -0,0 +1,10 @@
import React, { FC } from 'react';
import styles from './styles.scss';
interface IProps {}
const ProfilePage: FC<IProps> = ({}) => {
return <div className={styles.wrap}>PROFILE</div>;
};
export { ProfilePage };

View file

@ -0,0 +1,4 @@
.wrap {
flex: 1;
background: $content_bg;
}