docs(nxdev): algolia search cleanup from flavour and version props (#8424)
This commit is contained in:
parent
873982fed8
commit
ee5e943083
@ -17,11 +17,7 @@ function Hit({ hit, children }) {
|
||||
);
|
||||
}
|
||||
|
||||
export interface AlgoliaSearchProps {
|
||||
flavorId: string;
|
||||
versionId: string;
|
||||
}
|
||||
export function AlgoliaSearch({ flavorId, versionId }: AlgoliaSearchProps) {
|
||||
export function AlgoliaSearch() {
|
||||
const router = useRouter();
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
const searchButtonRef = useRef<HTMLButtonElement>(null);
|
||||
|
||||
@ -56,9 +56,7 @@ export function Header(props: HeaderProps) {
|
||||
</a>
|
||||
</div>
|
||||
{/*SEARCH*/}
|
||||
<div className="inline">
|
||||
{!!showSearch ? <AlgoliaSearch flavorId="r" versionId="l" /> : null}
|
||||
</div>
|
||||
<div className="inline">{!!showSearch ? <AlgoliaSearch /> : null}</div>
|
||||
{/*NAVIGATION*/}
|
||||
<div className="text-sm flex-shrink-0">
|
||||
<nav className="flex items-justified justify-center space-x-1">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user