mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
sing create-react-app now
This commit is contained in:
parent
332d09e3bd
commit
a9c43e8976
41 changed files with 6207 additions and 15613 deletions
|
@ -1,6 +1,5 @@
|
|||
import React, { FC } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { hot } from 'react-hot-loader';
|
||||
import { ConnectedRouter } from 'connected-react-router';
|
||||
import { history } from '~/redux/store';
|
||||
import { MainLayout } from '~/containers/main/MainLayout';
|
||||
|
@ -40,4 +39,4 @@ const Component: FC<IProps> = ({ modal: { is_shown } }) => {
|
|||
);
|
||||
};
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(hot(module)(Component));
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(Component);
|
||||
|
|
|
@ -8,7 +8,7 @@ import styles from './styles.module.scss';
|
|||
import { Group } from '~/components/containers/Group';
|
||||
import boris from '~/sprites/boris_robot.svg';
|
||||
import { NodeNoComments } from '~/components/node/NodeNoComments';
|
||||
import { getRandomPhrase } from '~/constants/phrases';
|
||||
import { useRandomPhrase } from '~/constants/phrases';
|
||||
import { NodeCommentForm } from '~/components/node/NodeCommentForm';
|
||||
|
||||
import * as NODE_ACTIONS from '~/redux/node/actions';
|
||||
|
@ -19,7 +19,6 @@ import isBefore from 'date-fns/isBefore';
|
|||
import { Card } from '~/components/containers/Card';
|
||||
import { Footer } from '~/components/main/Footer';
|
||||
import { Sticky } from '~/components/containers/Sticky';
|
||||
import { Placeholder } from '~/components/placeholders/Placeholder';
|
||||
import { selectBorisStats } from '~/redux/boris/selectors';
|
||||
import { BorisStats } from '~/components/boris/BorisStats';
|
||||
|
||||
|
@ -58,7 +57,7 @@ const BorisLayoutUnconnected: FC<IProps> = ({
|
|||
borisLoadStats,
|
||||
stats,
|
||||
}) => {
|
||||
const title = getRandomPhrase('BORIS_TITLE');
|
||||
const title = useRandomPhrase('BORIS_TITLE');
|
||||
|
||||
useEffect(() => {
|
||||
const last_comment = comments[0];
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
width: 100%;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
background: 50% 0% no-repeat url('~/sprites/boris_bg.svg');
|
||||
background: 50% 0% no-repeat url('../../../sprites/boris_bg.svg');
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
box-sizing: border-box;
|
||||
background: url('~/sprites/lost.svg') 50% 50% no-repeat;
|
||||
background: url('../../../sprites/lost.svg') 50% 50% no-repeat;
|
||||
background-size: cover;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue