File tree Expand file tree Collapse file tree
apps/site/components/Common/Searchbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ import {
2020import { useScrollableContainer } from '@orama/ui/hooks/useScrollableContainer' ;
2121import Link from 'next/link' ;
2222import { useLocale , useTranslations } from 'next-intl' ;
23- import { type FC , type PropsWithChildren } from 'react' ;
23+ import type { FC , PropsWithChildren } from 'react' ;
2424
2525import styles from './chat.module.css' ;
2626
27- type SlidingChatPanelProps = PropsWithChildren & {
27+ type SlidingChatPanelProps = PropsWithChildren < {
2828 open : boolean ;
2929 onClose : ( ) => void ;
30- } ;
30+ } > ;
3131
3232export const SlidingChatPanel : FC < SlidingChatPanelProps > = ( {
3333 open,
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ import classNames from 'classnames';
1818import Image from 'next/image' ;
1919import Link from 'next/link' ;
2020import { useLocale , useTranslations } from 'next-intl' ;
21- import { type FC , type PropsWithChildren } from 'react' ;
21+ import type { FC , PropsWithChildren } from 'react' ;
2222
2323import styles from './search.module.css' ;
2424import { getFormattedPath } from './utils' ;
2525
26- type SearchProps = PropsWithChildren & {
26+ type SearchProps = PropsWithChildren < {
2727 onChatTrigger : ( ) => void ;
28- } ;
28+ } > ;
2929
3030export 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 >
You can’t perform that action at this time.
0 commit comments