diff --git a/src/components/flow/TestGrid/index.tsx b/src/components/flow/TestGrid/index.tsx index 3f0f7000..d3a54fe4 100644 --- a/src/components/flow/TestGrid/index.tsx +++ b/src/components/flow/TestGrid/index.tsx @@ -30,6 +30,7 @@ export const TestGrid = () => ( width={Math.floor(Math.random() * 3)} height={Math.floor(Math.random() * 3)} title={`Cell ${el}`} + key={el} /> )) } diff --git a/src/components/node/Comment/index.tsx b/src/components/node/Comment/index.tsx index 3a36a3d9..c5d695d5 100644 --- a/src/components/node/Comment/index.tsx +++ b/src/components/node/Comment/index.tsx @@ -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 & { is_empty?: boolean; @@ -24,11 +23,7 @@ const Comment: FC = ({
-
- { - is_empty && - } -
+
); diff --git a/src/constants/urls.ts b/src/constants/urls.ts new file mode 100644 index 00000000..0dcf5ce5 --- /dev/null +++ b/src/constants/urls.ts @@ -0,0 +1,10 @@ +export const URLS = { + BASE: '/', + AUTH: { + LOGIN: '/auth/login', + }, + EXAMPLES: { + EDITOR: '/examples/edit', + IMAGE: '/examples/image', + }, +}; diff --git a/src/containers/App.tsx b/src/containers/App.tsx index 2ef0b32c..8b6c9e62 100644 --- a/src/containers/App.tsx +++ b/src/containers/App.tsx @@ -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 { return ( - - - - - - + + + - +