Skip to content

Commit 954ee99

Browse files
committed
2 parents d37297f + e09fa32 commit 954ee99

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/site/components/Common/Searchbox/Chat.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ import {
2020
import { useScrollableContainer } from '@orama/ui/hooks/useScrollableContainer';
2121
import Link from 'next/link';
2222
import { useLocale, useTranslations } from 'next-intl';
23-
import { type FC, type PropsWithChildren } from 'react';
23+
import type { FC, PropsWithChildren } from 'react';
2424

2525
import styles from './chat.module.css';
2626

27-
type SlidingChatPanelProps = PropsWithChildren & {
27+
type SlidingChatPanelProps = PropsWithChildren<{
2828
open: boolean;
2929
onClose: () => void;
30-
};
30+
}>;
3131

3232
export const SlidingChatPanel: FC<SlidingChatPanelProps> = ({
3333
open,

apps/site/components/Common/Searchbox/Search.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ import classNames from 'classnames';
1818
import Image from 'next/image';
1919
import Link from 'next/link';
2020
import { useLocale, useTranslations } from 'next-intl';
21-
import { type FC, type PropsWithChildren } from 'react';
21+
import type { FC, PropsWithChildren } from 'react';
2222

2323
import styles from './search.module.css';
2424
import { getFormattedPath } from './utils';
2525

26-
type SearchProps = PropsWithChildren & {
26+
type SearchProps = PropsWithChildren<{
2727
onChatTrigger: () => void;
28-
};
28+
}>;
2929

3030
export const Search: FC<SearchProps> = ({ onChatTrigger }) => {
3131
const locale = useLocale();
@@ -50,7 +50,7 @@ export const Search: FC<SearchProps> = ({ onChatTrigger }) => {
5050
onClick={onChatTrigger}
5151
className={classNames(
5252
styles.chatButton,
53-
searchTerm ? styles.chatButtonWithSearch : ''
53+
{ [styles.chatButtonWithSearch]: searchTerm }
5454
)}
5555
data-focus-on-arrow-nav
5656
>

0 commit comments

Comments
 (0)