Skip to content

Commit

Permalink
chore: move search to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 5, 2024
1 parent 218cbac commit 6c02a00
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apps/frontend/web/app/layouts/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { memo } from 'react';
import { NavLink } from '@remix-run/react';
import { useAtomValue } from 'jotai';

import Search from '~/components/Search';

import Search from './Search';
import { Loading } from './Loading';
import { isOpenSidebar, Sidebar } from './Sidebar';

Expand Down
3 changes: 2 additions & 1 deletion apps/frontend/web/app/layouts/Sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { APP_HOST } from '~build/env';
import { generateFeed } from '~/utils/feed';
import { getActivePageTab } from '~/utils/routes';
import { collectionsAtom, type Collection } from '~/states/collection';
import { stringifySearch } from '~/components/Search/utils';
import {
DropdownMenu,
DropdownMenuContent,
Expand All @@ -20,6 +19,8 @@ import {
} from '~/components/ui/dropdown-menu';
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '~/components/ui/tooltip';

import { stringifySearch } from '../Search/utils';

import './sidebar.css';
import { isOpenSidebar } from './atom';
import { toast } from 'sonner';
Expand Down

0 comments on commit 6c02a00

Please sign in to comment.