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

fixed uploads

This commit is contained in:
muerwre 2019-08-21 18:50:13 +07:00
parent cad4e683bc
commit 32b9a0dbbb
9 changed files with 52 additions and 37 deletions

View file

@ -1,7 +1,8 @@
import React, { FC } from 'react';
import * as styles from './styles.scss';
import range from 'ramda/es/range';
import classNames = require("classnames");
import * as styles from './styles.scss';
import classNames = require('classnames');
interface IProps {
total: number;
@ -11,11 +12,9 @@ interface IProps {
const ImageSwitcher: FC<IProps> = ({ total, current }) => (
<div className={styles.wrap}>
<div className={styles.switcher}>
{
range(0, total).map((item) => (
<div className={classNames({ is_active: item === current })} />
))
}
{range(0, total).map(item => (
<div className={classNames({ is_active: item === current })} key={item} />
))}
</div>
</div>
);