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

cleared out comments

This commit is contained in:
muerwre 2019-08-01 14:24:06 +07:00
parent 754e11cbcc
commit bef08be3d5
4 changed files with 17 additions and 14 deletions

View file

@ -30,6 +30,7 @@ export const TestGrid = () => (
width={Math.floor(Math.random() * 3)} width={Math.floor(Math.random() * 3)}
height={Math.floor(Math.random() * 3)} height={Math.floor(Math.random() * 3)}
title={`Cell ${el}`} title={`Cell ${el}`}
key={el}
/> />
)) ))
} }

View file

@ -2,7 +2,6 @@ import React, {FC, HTMLAttributes} from 'react';
import { Card } from "~/components/containers/Card"; import { Card } from "~/components/containers/Card";
import * as styles from './styles.scss'; import * as styles from './styles.scss';
import classNames = require("classnames"); import classNames = require("classnames");
import {ParagraphPlaceholder} from "~/components/placeholders/ParagraphPlaceholder";
type IProps = HTMLAttributes<HTMLDivElement> & { type IProps = HTMLAttributes<HTMLDivElement> & {
is_empty?: boolean; is_empty?: boolean;
@ -24,11 +23,7 @@ const Comment: FC<IProps> = ({
<div className={styles.thumb_image} /> <div className={styles.thumb_image} />
</div> </div>
<div className={styles.text}> <div className={styles.text} />
{
is_empty && <ParagraphPlaceholder />
}
</div>
</Card> </Card>
); );

10
src/constants/urls.ts Normal file
View file

@ -0,0 +1,10 @@
export const URLS = {
BASE: '/',
AUTH: {
LOGIN: '/auth/login',
},
EXAMPLES: {
EDITOR: '/examples/edit',
IMAGE: '/examples/image',
},
};

View file

@ -12,7 +12,7 @@ import { ImageExample } from "~/containers/examples/ImageExample";
import { EditorExample } from "~/containers/examples/EditorExample"; import { EditorExample } from "~/containers/examples/EditorExample";
import { HorizontalExample } from "~/containers/examples/HorizontalExample"; import { HorizontalExample } from "~/containers/examples/HorizontalExample";
import { Sprites } from "~/sprites/Sprites"; import { Sprites } from "~/sprites/Sprites";
import {GodRays} from "~/components/main/GodRays"; import { URLS } from "~/constants/urls";
interface IAppProps {} interface IAppProps {}
interface IAppState {} interface IAppState {}
@ -22,17 +22,14 @@ class Component extends React.Component<IAppProps, IAppState> {
return ( return (
<ConnectedRouter history={history}> <ConnectedRouter history={history}>
<MainLayout> <MainLayout>
<GodRays />
<Sprites /> <Sprites />
<Switch> <Switch>
<Route path="/examples/image" component={ImageExample} /> <Route path={URLS.EXAMPLES.IMAGE} component={ImageExample} />
<Route path="/examples/edit" component={EditorExample} /> <Route path={URLS.EXAMPLES.EDITOR} component={EditorExample} />
<Route path="/examples/horizontal" component={HorizontalExample} /> <Route exact path={URLS.BASE} component={FlowLayout} />
<Route path="/" component={FlowLayout} />
<Route path="/login" component={LoginLayout} /> <Route path={URLS.AUTH.LOGIN} component={LoginLayout} />
<Redirect to="/" /> <Redirect to="/" />
</Switch> </Switch>