|
1 | 1 | 'use client'; |
2 | 2 |
|
3 | 3 | import {Content, Heading, IllustratedMessage} from '@react-spectrum/s2'; |
4 | | -import {getLibraryFromPage} from './library'; |
| 4 | +import {getBaseUrl} from './pageUtils'; |
5 | 5 | // @ts-ignore |
| 6 | +import {getLibraryFromPage} from './library'; |
6 | 7 | import {iconList, useIconFilter} from './IconSearchView'; |
7 | 8 | import {Key} from 'react-aria-components'; |
| 9 | + |
8 | 10 | import {type Library, TAB_DEFS} from './constants'; |
9 | | -// eslint-disable-next-line monorepo/no-internal-import |
10 | | -import NoSearchResults from '@react-spectrum/s2/illustrations/linear/NoSearchResults'; |
11 | 11 | // @ts-ignore |
| 12 | +import NoSearchResults from '@react-spectrum/s2/illustrations/linear/NoSearchResults'; |
12 | 13 | import {Page} from '@parcel/rsc'; |
13 | 14 | import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; |
14 | 15 | import {style} from '@react-spectrum/s2/style' with {type: 'macro'}; |
@@ -37,7 +38,8 @@ export interface Section { |
37 | 38 |
|
38 | 39 | export interface Tag { |
39 | 40 | id: string, |
40 | | - name: string |
| 41 | + name: string, |
| 42 | + href?: string |
41 | 43 | } |
42 | 44 |
|
43 | 45 | /** |
@@ -349,7 +351,7 @@ export function getOrderedLibraries(currentPage: Page) { |
349 | 351 |
|
350 | 352 | export function getResourceTags(library: Library): Tag[] { |
351 | 353 | if (library === 'react-spectrum') { |
352 | | - return [{id: 'icons', name: 'Icons'}]; |
| 354 | + return [{id: 'icons', name: 'Icons'}, {id: 'v3', name: 'React Spectrum v3', href: getBaseUrl('s2') + '/v3/getting-started.html'}]; |
353 | 355 | } |
354 | 356 | return []; |
355 | 357 | } |
|
0 commit comments