Skip to content

Commit 36bb354

Browse files
committed
Refactor imports in App, AppSidebar, and ObjectView components to streamline dependencies and improve code clarity
1 parent 7853308 commit 36bb354

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

apps/console/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { BrowserRouter, Routes, Route, Navigate, useNavigate, useLocation, useSe
22
import { useState, useEffect } from 'react';
33
import { ObjectStackClient } from '@objectstack/client';
44
import { ObjectForm } from '@object-ui/plugin-form';
5-
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Empty, EmptyTitle } from '@object-ui/components';
5+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Empty, EmptyTitle } from '@object-ui/components';
66
import { SchemaRendererProvider } from '@object-ui/react';
77
import { ObjectStackDataSource } from './dataSource';
88
import appConfig from '../objectstack.config';
@@ -72,7 +72,7 @@ export function AppContent() {
7272
// App Selection
7373
const navigate = useNavigate();
7474
const location = useLocation();
75-
const [searchParams, setSearchParams] = useSearchParams();
75+
const [, setSearchParams] = useSearchParams();
7676
const { appName } = useParams();
7777
const apps = appConfig.apps || [];
7878

apps/console/src/components/AppSidebar.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ import {
3232
Plus,
3333
Settings,
3434
LogOut,
35-
LayoutDashboard,
3635
Database,
37-
Users,
38-
CheckSquare,
39-
Activity,
40-
Briefcase,
41-
FileText,
4236
ChevronRight,
4337
} from 'lucide-react';
4438
import appConfig from '../../objectstack.config';

apps/console/src/components/ObjectView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { DetailView } from '@object-ui/plugin-detail';
77
import '@object-ui/plugin-grid';
88
import '@object-ui/plugin-kanban';
99
import '@object-ui/plugin-calendar';
10-
import { Button, Empty, EmptyTitle, EmptyDescription, Sheet, SheetContent, SheetHeader, SheetTitle } from '@object-ui/components';
10+
import { Button, Empty, EmptyTitle, EmptyDescription, Sheet, SheetContent } from '@object-ui/components';
1111
import { Plus, Calendar as CalendarIcon, Kanban as KanbanIcon, Table as TableIcon, AlignLeft } from 'lucide-react';
1212
import type { ListViewSchema } from '@object-ui/types';
1313

0 commit comments

Comments
 (0)