diff --git a/app/src/app/(dashboard)/layout.tsx b/app/src/app/(dashboard)/layout.tsx index a65a3546..35aa9b1a 100644 --- a/app/src/app/(dashboard)/layout.tsx +++ b/app/src/app/(dashboard)/layout.tsx @@ -2,9 +2,11 @@ import React from 'react' import DefaultLayout from '@/components/layouts/dashboard/DashboardLayout' -type DashboardLayoutProps = React.PropsWithChildren +type DashboardSegmentLayoutProps = React.PropsWithChildren -const DashboardLayout: React.FC = ({ children }) => {children} +const DashboardSegmentLayout: React.FC = ({ children }) => ( + {children} +) export const dynamic = 'force-dynamic' -export default DashboardLayout +export default DashboardSegmentLayout diff --git a/app/src/app/(dashboard)/recipes/page.tsx b/app/src/app/(dashboard)/recipes/page.tsx index a0a2b852..05753694 100644 --- a/app/src/app/(dashboard)/recipes/page.tsx +++ b/app/src/app/(dashboard)/recipes/page.tsx @@ -21,7 +21,7 @@ const RecipeListPage: React.FC = () => { }) return ( -
+
diff --git a/app/src/app/(libraries)/library/[slug]/explore/[[...path]]/page.tsx b/app/src/app/(libraries)/library/[slug]/explore/[[...path]]/page.tsx index d8489ce6..b6340485 100644 --- a/app/src/app/(libraries)/library/[slug]/explore/[[...path]]/page.tsx +++ b/app/src/app/(libraries)/library/[slug]/explore/[[...path]]/page.tsx @@ -82,9 +82,9 @@ const LibraryExplorePage: React.FC = ({ params }) => { const context = useExplore({ directory: query.file_system_directory.id }) return ( -
+
-
+
@@ -109,10 +109,10 @@ const LibraryExplorePage: React.FC = ({ params }) => {
-
- +
+ - Resolution + Resolution diff --git a/app/src/app/(libraries)/library/[slug]/explore/layout.tsx b/app/src/app/(libraries)/library/[slug]/explore/layout.tsx index 2586b0af..53c29d89 100644 --- a/app/src/app/(libraries)/library/[slug]/explore/layout.tsx +++ b/app/src/app/(libraries)/library/[slug]/explore/layout.tsx @@ -1,7 +1,7 @@ type LibrarySlugExplorePageLayoutProps = React.PropsWithChildren const LibrarySlugExplorePageLayout: React.FC = ({ children }) => ( -
{children}
+
{children}
) export default LibrarySlugExplorePageLayout diff --git a/app/src/app/(libraries)/library/[slug]/page.tsx b/app/src/app/(libraries)/library/[slug]/page.tsx index f64347c0..8ca6b581 100644 --- a/app/src/app/(libraries)/library/[slug]/page.tsx +++ b/app/src/app/(libraries)/library/[slug]/page.tsx @@ -33,7 +33,7 @@ const LibraryDashboard = () => { }) return ( - + Tasks diff --git a/app/src/components/layouts/dashboard/navbar/Navbar.tsx b/app/src/components/layouts/dashboard/navbar/Navbar.tsx index e38bb23e..ce858bdd 100644 --- a/app/src/components/layouts/dashboard/navbar/Navbar.tsx +++ b/app/src/components/layouts/dashboard/navbar/Navbar.tsx @@ -4,7 +4,7 @@ import { Input, Navigation } from '@giantnodes/react' import { IconBell, IconSearch } from '@tabler/icons-react' const Navbar: React.FC = (props) => ( - + diff --git a/app/src/components/layouts/dashboard/sidebar/SettingsSidebar.tsx b/app/src/components/layouts/dashboard/sidebar/SettingsSidebar.tsx index 37097b20..6a5e6c06 100644 --- a/app/src/components/layouts/dashboard/sidebar/SettingsSidebar.tsx +++ b/app/src/components/layouts/dashboard/sidebar/SettingsSidebar.tsx @@ -2,7 +2,6 @@ import { Navigation } from '@giantnodes/react' import { IconHomeCog, IconServerCog, IconUserCog } from '@tabler/icons-react' -import Link from 'next/link' import { usePathname } from 'next/navigation' const SettingSidebar: React.FC = () => { @@ -11,36 +10,30 @@ const SettingSidebar: React.FC = () => { const route = router.split('/')[2] return ( - + Settings - - - - General - - + + + General + - - - - - Preferences - - + + + + Preferences + - - - - - Encoder - - + + + + Encoder + diff --git a/app/src/components/layouts/dashboard/sidebar/Sidebar.tsx b/app/src/components/layouts/dashboard/sidebar/Sidebar.tsx index 12cdfd45..6587e09b 100644 --- a/app/src/components/layouts/dashboard/sidebar/Sidebar.tsx +++ b/app/src/components/layouts/dashboard/sidebar/Sidebar.tsx @@ -35,20 +35,20 @@ const Sidebar: React.FC = ({ $key, ...rest }) => { const route = router.split('/')[1] return ( - + giantnodes logo - - + + Dashboard - - + + Recipes @@ -68,8 +68,8 @@ const Sidebar: React.FC = ({ $key, ...rest }) => { - - + + Settings diff --git a/app/src/components/layouts/dashboard/sidebar/SidebarLibrarySegment.tsx b/app/src/components/layouts/dashboard/sidebar/SidebarLibrarySegment.tsx index 74157925..89dd127c 100644 --- a/app/src/components/layouts/dashboard/sidebar/SidebarLibrarySegment.tsx +++ b/app/src/components/layouts/dashboard/sidebar/SidebarLibrarySegment.tsx @@ -9,7 +9,6 @@ import type { AvatarProps } from '@giantnodes/react' import { Avatar, Navigation } from '@giantnodes/react' import { IconFolderCheck, IconFolderExclamation, IconFolderQuestion, IconFolderX } from '@tabler/icons-react' -import Link from 'next/link' import { graphql, usePaginationFragment } from 'react-relay' const FRAGMENT = graphql` @@ -78,16 +77,14 @@ const SidebarLibrarySegment: React.FC = ({ $key }) = <> {data?.libraries?.edges?.map((edge) => ( - - - - - - + + + + + - {edge.node.name} - - + {edge.node.name} + ))} diff --git a/app/src/components/layouts/library/navbar/Navbar.tsx b/app/src/components/layouts/library/navbar/Navbar.tsx index e11256a2..385edb7d 100644 --- a/app/src/components/layouts/library/navbar/Navbar.tsx +++ b/app/src/components/layouts/library/navbar/Navbar.tsx @@ -6,7 +6,7 @@ import { Input, Navigation } from '@giantnodes/react' import { IconBell, IconSearch } from '@tabler/icons-react' const Navbar: React.FC = (props) => ( - + diff --git a/app/src/components/layouts/library/sidebar/SettingSidebar.tsx b/app/src/components/layouts/library/sidebar/SettingSidebar.tsx index d8457ea1..f3e34554 100644 --- a/app/src/components/layouts/library/sidebar/SettingSidebar.tsx +++ b/app/src/components/layouts/library/sidebar/SettingSidebar.tsx @@ -2,7 +2,6 @@ import { Navigation } from '@giantnodes/react' import { IconHomeCog } from '@tabler/icons-react' -import Link from 'next/link' import { usePathname } from 'next/navigation' import { useLibraryContext } from '@/app/(libraries)/library/[slug]/use-library.hook' @@ -14,19 +13,17 @@ const SettingSidebar: React.FC = () => { const route = router.split('/')[4] return ( - + Settings - - - - - General - - + + + + General + diff --git a/app/src/components/layouts/library/sidebar/Sidebar.tsx b/app/src/components/layouts/library/sidebar/Sidebar.tsx index b833c325..e31cf034 100644 --- a/app/src/components/layouts/library/sidebar/Sidebar.tsx +++ b/app/src/components/layouts/library/sidebar/Sidebar.tsx @@ -5,7 +5,6 @@ import type { NavigationProps } from '@giantnodes/react' import { Navigation } from '@giantnodes/react' import { IconFolders, IconGauge, IconHome, IconSettings } from '@tabler/icons-react' import Image from 'next/image' -import Link from 'next/link' import { usePathname } from 'next/navigation' import { useLibraryContext } from '@/app/(libraries)/library/[slug]/use-library.hook' @@ -17,46 +16,38 @@ const Sidebar: React.FC = ({ ...rest }) => { const route = router.split('/')[3] return ( - + giantnodes logo - - - - - + + + - - - - - - + + + + - - - - - - + + + + - - - - - - + + + +