fix: lint housekeeping
This commit is contained in:
parent
23bc8335cc
commit
4df59b9c64
@ -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 {
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user