diff --git a/src/components/CollectionsPage/CollectionsPage.tsx b/src/components/CollectionsPage/CollectionsPage.tsx index 342ae2327..ce42a2866 100644 --- a/src/components/CollectionsPage/CollectionsPage.tsx +++ b/src/components/CollectionsPage/CollectionsPage.tsx @@ -30,6 +30,7 @@ import { CollectionPageView } from 'modules/ui/collection/types' import { CurationSortOptions } from 'modules/curations/types' import { usePagination } from 'lib/pagination' import { CollectionType } from 'modules/collection/types' +import { BUILDER_BANNER_ID } from 'modules/common/banners' import collectionsIcon from 'icons/collections.svg' import ItemCard from './ItemCard' import ItemRow from './ItemRow' @@ -38,7 +39,6 @@ import CollectionRow from './CollectionRow' import { Props, TABS } from './CollectionsPage.types' import './CollectionsPage.css' -const BUILDER_BANNER_ID = 'builderCampaignBanner' const PAGE_SIZE = 20 export const LOCALSTORAGE_EMOTES_V2_ANNOUCEMENT = 'builder-emotes-2.0-announcement' diff --git a/src/components/HomePage/HomePage.tsx b/src/components/HomePage/HomePage.tsx index b359289ca..4de0eac1a 100644 --- a/src/components/HomePage/HomePage.tsx +++ b/src/components/HomePage/HomePage.tsx @@ -11,12 +11,12 @@ import LoadingPage from 'components/LoadingPage' import SyncToast from 'components/SyncToast' import Navigation from 'components/Navigation' import { NavigationTab } from 'components/Navigation/Navigation.types' +import { BUILDER_BANNER_ID } from 'modules/common/banners' import { locations } from 'routing/locations' import { Props } from './HomePage.types' import './HomePage.css' export const LOCALSTORAGE_LAST_VISITED_SECTION_KEY = 'builder-last-visited-section' -const BUILDER_BANNER_ID = 'builderCampaignBanner' const localStorage = getLocalStorage() const cards = [NavigationTab.COLLECTIONS, NavigationTab.SCENES, NavigationTab.LAND, NavigationTab.NAMES] diff --git a/src/modules/common/banners.ts b/src/modules/common/banners.ts new file mode 100644 index 000000000..5cce548c4 --- /dev/null +++ b/src/modules/common/banners.ts @@ -0,0 +1,3 @@ +const BUILDER_BANNER_ID = 'builderCampaignBanner' + +export { BUILDER_BANNER_ID } diff --git a/tsconfig.node.json b/tsconfig.node.json index 42872c59f..601e332bc 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -6,5 +6,5 @@ "moduleResolution": "bundler", "allowSyntheticDefaultImports": true }, - "include": ["vite.config.ts"] + "include": ["vite.config.ts", "src"] }