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:
parent
0d64d847a1
commit
718bb8c9c7
4 changed files with 17 additions and 1 deletions
|
@ -14,6 +14,7 @@ export const URLS = {
|
||||||
},
|
},
|
||||||
NODE_URL: (id: number | string) => `/post${id}`,
|
NODE_URL: (id: number | string) => `/post${id}`,
|
||||||
PROFILE: (username: string) => `/~${username}`,
|
PROFILE: (username: string) => `/~${username}`,
|
||||||
|
PROFILE_PAGE: `/profile`,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const PRESETS = {
|
export const PRESETS = {
|
||||||
|
|
|
@ -18,7 +18,7 @@ import { NodeLayout } from './node/NodeLayout';
|
||||||
import { BottomContainer } from '~/containers/main/BottomContainer';
|
import { BottomContainer } from '~/containers/main/BottomContainer';
|
||||||
import { BorisLayout } from './node/BorisLayout';
|
import { BorisLayout } from './node/BorisLayout';
|
||||||
import { ErrorNotFound } from './pages/ErrorNotFound';
|
import { ErrorNotFound } from './pages/ErrorNotFound';
|
||||||
import { ProfileLayout } from './profile/ProfileLayout';
|
import { ProfilePage } from './profile/ProfilePage';
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
modal: selectModal(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.NODE_URL(':id')} component={NodeLayout} />
|
||||||
<Route path={URLS.BORIS} component={BorisLayout} />
|
<Route path={URLS.BORIS} component={BorisLayout} />
|
||||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||||
|
<Route path={URLS.PROFILE_PAGE} component={ProfilePage} />
|
||||||
|
|
||||||
<Redirect to="/" />
|
<Redirect to="/" />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
|
10
src/containers/profile/ProfilePage/index.tsx
Normal file
10
src/containers/profile/ProfilePage/index.tsx
Normal 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 };
|
4
src/containers/profile/ProfilePage/styles.scss
Normal file
4
src/containers/profile/ProfilePage/styles.scss
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
.wrap {
|
||||||
|
flex: 1;
|
||||||
|
background: $content_bg;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue