|
@@ -2,8 +2,6 @@ import React from 'react';
|
|
|
|
|
|
|
|
import type { GetItemProps } from '../interfaces/downshift';
|
|
import type { GetItemProps } from '../interfaces/downshift';
|
|
|
|
|
|
|
|
-import styles from './SearchMenuItem.module.scss';
|
|
|
|
|
-
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
|
url: string
|
|
url: string
|
|
|
index: number
|
|
index: number
|
|
@@ -21,15 +19,13 @@ export const SearchMenuItem = (props: Props): JSX.Element => {
|
|
|
getItemProps({
|
|
getItemProps({
|
|
|
index,
|
|
index,
|
|
|
item: { url },
|
|
item: { url },
|
|
|
- className: `text-muted d-flex p-1 ${isActive ? 'active' : ''}`,
|
|
|
|
|
|
|
+ className: `d-flex p-1 ${isActive ? 'text-bg-primary' : ''}`,
|
|
|
})
|
|
})
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <div className={`search-menu-item ${styles['search-menu-item']}`}>
|
|
|
|
|
- <li {...itemMenuOptions}>
|
|
|
|
|
- { children }
|
|
|
|
|
- </li>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <li {...itemMenuOptions}>
|
|
|
|
|
+ { children }
|
|
|
|
|
+ </li>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|