diff --git a/components/src/components/atoms/BackdropSurface/BackdropSurface.tsx b/components/src/components/atoms/BackdropSurface/BackdropSurface.tsx index 39461523..84e27f44 100644 --- a/components/src/components/atoms/BackdropSurface/BackdropSurface.tsx +++ b/components/src/components/atoms/BackdropSurface/BackdropSurface.tsx @@ -26,6 +26,7 @@ export const BackdropSurface = React.forwardRef ), ) diff --git a/components/src/components/atoms/RecordItem/RecordItem.test.tsx b/components/src/components/atoms/RecordItem/RecordItem.test.tsx index 2a1930e9..19e64ee8 100644 --- a/components/src/components/atoms/RecordItem/RecordItem.test.tsx +++ b/components/src/components/atoms/RecordItem/RecordItem.test.tsx @@ -19,7 +19,7 @@ describe('', () => { it('renders', () => { render( } + icon={FlameSVG} keyLabel="Title" keySublabel="Subtitle" value="Real value" @@ -36,7 +36,7 @@ describe('', () => { it('should copy value to clipboard if clicked', () => { render( } + icon={FlameSVG} keyLabel="Title" keySublabel="Subtitle" value="Real value" @@ -54,7 +54,7 @@ describe('', () => { } + icon={FlameSVG} keyLabel="Title" keySublabel="Subtitle" value="Real value" @@ -70,7 +70,7 @@ describe('', () => { } + icon={FlameSVG} keyLabel="Title" keySublabel="Subtitle" link="https://ens.domains" @@ -90,7 +90,7 @@ describe('', () => { } + icon={FlameSVG} keyLabel="Title" keySublabel="Subtitle" target="_parent" @@ -110,7 +110,7 @@ describe('', () => { } + icon={FlameSVG} keyLabel="Title" keySublabel="Subtitle" value="Real value" diff --git a/components/src/components/atoms/RecordItem/RecordItem.tsx b/components/src/components/atoms/RecordItem/RecordItem.tsx index f627f735..355b3ddc 100644 --- a/components/src/components/atoms/RecordItem/RecordItem.tsx +++ b/components/src/components/atoms/RecordItem/RecordItem.tsx @@ -21,7 +21,7 @@ type BaseProps = { value: string size?: Size inline?: boolean - icon?: ReactNode + icon?: React.ComponentProps['as'] keyLabel?: string | ReactNode keySublabel?: string | ReactNode children: string @@ -243,7 +243,7 @@ export const RecordItem = React.forwardRef< {hasPrefix && ( - {icon && } + {icon && } {hasLabels && ( {KeyLabel} diff --git a/components/src/components/molecules/Backdrop/Backdrop.tsx b/components/src/components/molecules/Backdrop/Backdrop.tsx index b2d3c3df..e4b63747 100644 --- a/components/src/components/molecules/Backdrop/Backdrop.tsx +++ b/components/src/components/molecules/Backdrop/Backdrop.tsx @@ -39,6 +39,8 @@ export const Backdrop: React.FC = ({ mountOnEnter: true, unmountOnExit: true, }) + + console.log('state', state) const boxRef = React.useRef(null) const Background = surface || BackdropSurface diff --git a/components/src/components/molecules/Dropdown/Dropdown.tsx b/components/src/components/molecules/Dropdown/Dropdown.tsx index 68eac5d6..0931f53a 100644 --- a/components/src/components/molecules/Dropdown/Dropdown.tsx +++ b/components/src/components/molecules/Dropdown/Dropdown.tsx @@ -8,7 +8,7 @@ import { Button } from '@/src/components/atoms/Button/Button' import type { Colors } from '@/src/tokens' import { breakpoints } from '@/src/tokens' -import { commonVars, modeVars } from '@/src/css/theme.css' +import { modeVars } from '@/src/css/theme.css' import type { Color } from '@/src/interfaces/withColor' diff --git a/components/src/components/molecules/Modal/Modal.test.tsx b/components/src/components/molecules/Modal/Modal.test.tsx index 4c698a72..1396c7a4 100644 --- a/components/src/components/molecules/Modal/Modal.test.tsx +++ b/components/src/components/molecules/Modal/Modal.test.tsx @@ -1,16 +1,22 @@ import * as React from 'react' -import { cleanup, render, screen, waitFor } from '@/test' +import { cleanup, render, screen, waitFor, act } from '@/test' +import { vi } from 'vitest' import { Modal } from './Modal' window.scroll = vi.fn() describe('', () => { - afterEach(cleanup) + beforeEach(() => vi.useFakeTimers({ shouldAdvanceTime: true })) + afterEach(() => { + vi.useRealTimers() + cleanup() + }) it('renders', async () => { render(Modal) + await act(() => vi.advanceTimersByTime(1000)) await waitFor(() => expect(screen.getByText('Modal')).toBeVisible(), { timeout: 300, }) diff --git a/components/src/components/molecules/Select/Select.test.tsx b/components/src/components/molecules/Select/Select.test.tsx index 2f3a2008..50edc7cf 100644 --- a/components/src/components/molecules/Select/Select.test.tsx +++ b/components/src/components/molecules/Select/Select.test.tsx @@ -133,21 +133,13 @@ describe('