mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
cleared out comments
This commit is contained in:
parent
754e11cbcc
commit
bef08be3d5
4 changed files with 17 additions and 14 deletions
|
@ -30,6 +30,7 @@ export const TestGrid = () => (
|
|||
width={Math.floor(Math.random() * 3)}
|
||||
height={Math.floor(Math.random() * 3)}
|
||||
title={`Cell ${el}`}
|
||||
key={el}
|
||||
/>
|
||||
))
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ import React, {FC, HTMLAttributes} from 'react';
|
|||
import { Card } from "~/components/containers/Card";
|
||||
import * as styles from './styles.scss';
|
||||
import classNames = require("classnames");
|
||||
import {ParagraphPlaceholder} from "~/components/placeholders/ParagraphPlaceholder";
|
||||
|
||||
type IProps = HTMLAttributes<HTMLDivElement> & {
|
||||
is_empty?: boolean;
|
||||
|
@ -24,11 +23,7 @@ const Comment: FC<IProps> = ({
|
|||
<div className={styles.thumb_image} />
|
||||
</div>
|
||||
|
||||
<div className={styles.text}>
|
||||
{
|
||||
is_empty && <ParagraphPlaceholder />
|
||||
}
|
||||
</div>
|
||||
<div className={styles.text} />
|
||||
</Card>
|
||||
);
|
||||
|
||||
|
|
10
src/constants/urls.ts
Normal file
10
src/constants/urls.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
export const URLS = {
|
||||
BASE: '/',
|
||||
AUTH: {
|
||||
LOGIN: '/auth/login',
|
||||
},
|
||||
EXAMPLES: {
|
||||
EDITOR: '/examples/edit',
|
||||
IMAGE: '/examples/image',
|
||||
},
|
||||
};
|
|
@ -12,7 +12,7 @@ import { ImageExample } from "~/containers/examples/ImageExample";
|
|||
import { EditorExample } from "~/containers/examples/EditorExample";
|
||||
import { HorizontalExample } from "~/containers/examples/HorizontalExample";
|
||||
import { Sprites } from "~/sprites/Sprites";
|
||||
import {GodRays} from "~/components/main/GodRays";
|
||||
import { URLS } from "~/constants/urls";
|
||||
|
||||
interface IAppProps {}
|
||||
interface IAppState {}
|
||||
|
@ -22,17 +22,14 @@ class Component extends React.Component<IAppProps, IAppState> {
|
|||
return (
|
||||
<ConnectedRouter history={history}>
|
||||
<MainLayout>
|
||||
<GodRays />
|
||||
|
||||
<Sprites />
|
||||
|
||||
<Switch>
|
||||
<Route path="/examples/image" component={ImageExample} />
|
||||
<Route path="/examples/edit" component={EditorExample} />
|
||||
<Route path="/examples/horizontal" component={HorizontalExample} />
|
||||
<Route path="/" component={FlowLayout} />
|
||||
<Route path={URLS.EXAMPLES.IMAGE} component={ImageExample} />
|
||||
<Route path={URLS.EXAMPLES.EDITOR} component={EditorExample} />
|
||||
<Route exact path={URLS.BASE} component={FlowLayout} />
|
||||
|
||||
<Route path="/login" component={LoginLayout} />
|
||||
<Route path={URLS.AUTH.LOGIN} component={LoginLayout} />
|
||||
|
||||
<Redirect to="/" />
|
||||
</Switch>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue