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

fixed eslint warnings

This commit is contained in:
Fedor Katurov 2022-01-07 19:06:57 +07:00
parent 58fa40dd5c
commit ba2e610e01
16 changed files with 82 additions and 585 deletions

View file

@ -1,9 +1,9 @@
import React, { FC, useCallback, useEffect, useRef, useState } from "react";
import { IUser } from "~/redux/auth/types";
import styles from "./styles.module.scss";
import { getURL } from "~/utils/dom";
import { PRESETS } from "~/constants/urls";
import classNames from "classnames";
import React, { FC, useCallback, useEffect, useRef, useState } from 'react';
import { IUser } from '~/redux/auth/types';
import styles from './styles.module.scss';
import { getURL } from '~/utils/dom';
import { PRESETS } from '~/constants/urls';
import classNames from 'classnames';
interface IProps {
cover: IUser['cover'];
@ -33,7 +33,7 @@ const CoverBackdrop: FC<IProps> = ({ cover }) => {
className={classNames(styles.cover, { [styles.active]: is_loaded })}
style={{ backgroundImage: `url("${image}")` }}
>
<img onLoad={onLoad} ref={ref} />
<img onLoad={onLoad} ref={ref} alt="" />
</div>
);
};