Skip to content

Commit ff59f5b

Browse files
committed
fix import and add directories for Search and Chat
1 parent 954ee99 commit ff59f5b

6 files changed

Lines changed: 7 additions & 8 deletions

File tree

apps/site/components/Common/Searchbox/chat.module.css renamed to apps/site/components/Common/Searchbox/Chat/index.module.css

File renamed without changes.

apps/site/components/Common/Searchbox/Chat.tsx renamed to apps/site/components/Common/Searchbox/Chat/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Link from 'next/link';
2222
import { useLocale, useTranslations } from 'next-intl';
2323
import type { FC, PropsWithChildren } from 'react';
2424

25-
import styles from './chat.module.css';
25+
import styles from './index.module.css';
2626

2727
type SlidingChatPanelProps = PropsWithChildren<{
2828
open: boolean;

apps/site/components/Common/Searchbox/search.module.css renamed to apps/site/components/Common/Searchbox/Search/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@reference "../../../styles/index.css";
1+
@reference "../../../../styles/index.css";
22

33
.searchInputWrapper {
44
@apply relative;

apps/site/components/Common/Searchbox/Search.tsx renamed to apps/site/components/Common/Searchbox/Search/index.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Link from 'next/link';
2020
import { useLocale, useTranslations } from 'next-intl';
2121
import type { FC, PropsWithChildren } from 'react';
2222

23-
import styles from './search.module.css';
23+
import styles from './index.module.css';
2424
import { getFormattedPath } from './utils';
2525

2626
type SearchProps = PropsWithChildren<{
@@ -48,10 +48,9 @@ export const Search: FC<SearchProps> = ({ onChatTrigger }) => {
4848
<button
4949
type="button"
5050
onClick={onChatTrigger}
51-
className={classNames(
52-
styles.chatButton,
53-
{ [styles.chatButtonWithSearch]: searchTerm }
54-
)}
51+
className={classNames(styles.chatButton, {
52+
[styles.chatButtonWithSearch]: searchTerm,
53+
})}
5554
data-focus-on-arrow-nav
5655
>
5756
<SparklesIcon />
File renamed without changes.

apps/site/components/withNavBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { useRouter, usePathname } from '#site/navigation.mjs';
2121
import { availableLocales } from '#site/next.locales.mjs';
2222

2323
const SearchButton = dynamic(
24-
() => import('#site/components/Common/SearchBox'),
24+
() => import('#site/components/Common/Searchbox'),
2525
{
2626
ssr: false,
2727
loading: () => (

0 commit comments

Comments
 (0)