Skip to content

Commit

Permalink
♻️ refactor: move portal code to features folder (#4631)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Nov 6, 2024
1 parent 87e51dc commit bb4ab9c
Show file tree
Hide file tree
Showing 38 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/(main)/chat/(workspace)/@portal/default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { isMobileDevice } from '@/utils/server/responsive';
import Desktop from './_layout/Desktop';
import Mobile from './_layout/Mobile';

const PortalBody = lazy(() => import('./router'));
const PortalBody = lazy(() => import('@/features/Portal/router'));

const Inspector = () => {
const mobile = isMobileDevice();
Expand Down
3 changes: 1 addition & 2 deletions src/app/(main)/chat/(workspace)/@portal/features/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import { XIcon } from 'lucide-react';
import { memo } from 'react';

import SidebarHeader from '@/components/SidebarHeader';
import { PortalHeader } from '@/features/Portal/router';
import { useChatStore } from '@/store/chat';

import { PortalHeader } from '../router';

const Header = memo(() => {
const [toggleInspector] = useChatStore((s) => [s.togglePortal]);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bb4ab9c

Please sign in to comment.