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

fixed player position

This commit is contained in:
Fedor Katurov 2021-10-13 17:57:26 +07:00
parent 6761ca6330
commit 2ce39efef8
4 changed files with 17 additions and 12 deletions

View file

@ -5,17 +5,16 @@ import { selectUser } from '~/redux/auth/selectors';
import { pick } from 'ramda';
import { connect } from 'react-redux';
const mapStateToProps = state => pick(['is_user'], selectUser(state));
type IProps = {};
type IProps = ReturnType<typeof mapStateToProps> & {};
const BottomContainerUnconnected: FC<IProps> = ({ is_user }) => (
const BottomContainer: FC<IProps> = () => (
<div className={styles.wrap}>
<div className={styles.content}>
<PlayerBar />
<div className={styles.padder}>
<PlayerBar />
</div>
</div>
</div>
);
const BottomContainer = connect(mapStateToProps)(BottomContainerUnconnected);
export { BottomContainer };