fix: lint housekeeping

This commit is contained in:
asiaznik 2023-01-30 19:04:09 +01:00
parent 23bc8335cc
commit 4df59b9c64
3 changed files with 1 additions and 8 deletions

View File

@ -1,5 +1,5 @@
import type { ReactNode } from 'react';
import { useCallback, useMemo } from 'react';
import { useCallback } from 'react';
import first from 'lodash/first';
import compact from 'lodash/compact';
import type {

View File

@ -1,6 +1,5 @@
import { t, usePrevious } from '@vegaprotocol/react-helpers';
import classNames from 'classnames';
import { tr } from 'date-fns/locale';
import type { Ref } from 'react';
import { useLayoutEffect, useRef } from 'react';
import { Button } from '../button';

View File

@ -12,12 +12,6 @@ const isEqual = (a: Toast, b: Toast) => {
return h1 === h2;
};
const sameContent = (a: Toast, b: Toast) => {
const h1 = hash(omit(a, 'onClose', 'id'));
const h2 = hash(omit(b, 'onClose', 'id'));
return h1 === h2;
};
type State = {
toasts: Toasts;
count: number;