1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16: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 } from "react";
import styles from "./styles.module.scss";
import React, { FC } from 'react';
import styles from './styles.module.scss';
interface IProps {}
const NodeDeletedBadge: FC<IProps> = ({}) => {
const NodeDeletedBadge: FC<IProps> = () => {
return <div className={styles.badge}>Эта ячейка заблокирована. Её не никто не увидит.</div>;
};

View file

@ -1,10 +1,10 @@
import React, { FC } from "react";
import { NodeTags } from "~/components/node/NodeTags";
import { useTagContext } from "~/utils/context/TagsContextProvider";
import React, { FC } from 'react';
import { NodeTags } from '~/components/node/NodeTags';
import { useTagContext } from '~/utils/context/TagsContextProvider';
interface IProps {}
const NodeTagsBlock: FC<IProps> = ({}) => {
const NodeTagsBlock: FC<IProps> = () => {
const {
tags,
canAppend,

View file

@ -1,7 +1,7 @@
import React, { FC, useMemo } from "react";
import styles from "./styles.module.scss";
import { path } from "ramda";
import { INodeComponentProps } from "~/constants/node";
import React, { FC, useMemo } from 'react';
import styles from './styles.module.scss';
import { path } from 'ramda';
import { INodeComponentProps } from '~/constants/node';
interface IProps extends INodeComponentProps {}
@ -11,7 +11,7 @@ const NodeVideoBlock: FC<IProps> = ({ node }) => {
const match =
url &&
url.match(
/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]*)(&(amp;)?[\w\?=]*)?/
/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-_]*)(&(amp;)?[\w?=]*)?/
);
return match && match[1];