Skip to content

Commit

Permalink
fix: Search icon is not showing in navbar#3441
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan-koley committed Dec 7, 2024
1 parent 4e4ed3e commit 12c5bd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/AlgoliaSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { useRouter } from 'next/router';
import React, { createContext, useCallback, useContext, useEffect, useRef, useState } from 'react';
import { createPortal } from 'react-dom';

import IconLoupe from '@/components/icons/Loupe';

export const INDEX_NAME = 'asyncapi';
export const DOCS_INDEX_NAME = 'asyncapi-docs';
const APP_ID = 'Z621OGRI9Y';
Expand Down Expand Up @@ -325,7 +327,7 @@ export function SearchButton({ children, indexName = INDEX_NAME, ...props }: ISe
{...props}
data-testid='Search-Button'
>
{Children}
{Children || <IconLoupe className='h-5 w-5' />}
</button>
);
}

0 comments on commit 12c5bd8

Please sign in to comment.