From 9faad9a91791a230c567c81978e0b36709909a46 Mon Sep 17 00:00:00 2001 From: Michael Chappell <7581002+mchappell@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:14:43 +0100 Subject: [PATCH] fix(staking): [LW-10282] staking storybook build --- .../BrowsePoolsPreferencesCard.stories.tsx | 3 ++- packages/staking/src/features/BrowsePools/constants.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/staking/src/features/BrowsePools/BrowsePoolsPreferencesCard/BrowsePoolsPreferencesCard.stories.tsx b/packages/staking/src/features/BrowsePools/BrowsePoolsPreferencesCard/BrowsePoolsPreferencesCard.stories.tsx index 18576f082..b87bdfd6a 100644 --- a/packages/staking/src/features/BrowsePools/BrowsePoolsPreferencesCard/BrowsePoolsPreferencesCard.stories.tsx +++ b/packages/staking/src/features/BrowsePools/BrowsePoolsPreferencesCard/BrowsePoolsPreferencesCard.stories.tsx @@ -2,11 +2,12 @@ import { Box, Cell, Flex, Grid, LocalThemeProvider, Section, ThemeColorScheme, V import { action } from '@storybook/addon-actions'; import { useArgs } from '@storybook/preview-api'; import { expect, userEvent, waitFor, within } from '@storybook/test'; -import { DEFAULT_SORT_OPTIONS, StakePoolSortOptions } from 'features/BrowsePools'; import { useCallback, useState } from 'react'; +import type { StakePoolSortOptions } from '../types'; import type { Meta, StoryObj } from '@storybook/react'; import { PoolsFilter, QueryStakePoolsFilters } from '../../store'; +import { DEFAULT_SORT_OPTIONS } from '../constants'; import { BrowsePoolsPreferencesCard } from './BrowsePoolsPreferencesCard'; import { SortAndFilterTab } from './types'; diff --git a/packages/staking/src/features/BrowsePools/constants.ts b/packages/staking/src/features/BrowsePools/constants.ts index fca7546d3..bae32b93e 100644 --- a/packages/staking/src/features/BrowsePools/constants.ts +++ b/packages/staking/src/features/BrowsePools/constants.ts @@ -1,4 +1,5 @@ -import { BrowsePoolsView, StakePoolSortOptions, StakingBrowserPreferences } from './types'; +import type { StakePoolSortOptions, StakingBrowserPreferences } from './types'; +import { BrowsePoolsView } from './types'; import { getDefaultSortOrderByField } from './utils'; export const SEARCH_DEBOUNCE_IN_MS = 300;