diff --git a/apps/builder/app/dashboard/dashboard.tsx b/apps/builder/app/dashboard/dashboard.tsx index a29f12ab352d..598ec0ad81e2 100644 --- a/apps/builder/app/dashboard/dashboard.tsx +++ b/apps/builder/app/dashboard/dashboard.tsx @@ -1,10 +1,4 @@ -import { - forwardRef, - useEffect, - useState, - type ComponentProps, - type ReactNode, -} from "react"; +import { useEffect, useState, type ReactNode } from "react"; import { Flex, List, @@ -45,34 +39,6 @@ const globalStyles = globalCss({ }, }); -const Main = (props: ComponentProps) => { - return ; -}; - -const Section = (props: ComponentProps) => { - return ( - - ); -}; - -export type DashboardProps = { - user: User; - projects?: Array; - templates?: Array; - userPlanFeatures: UserPlanFeatures; - publisherHost: string; - projectToClone?: { - authToken: string; - id: string; - title: string; - }; -}; - const CloneProject = ({ projectToClone, }: { @@ -128,31 +94,6 @@ const sidebarLinkStyle = css({ }, }); -const SidebarLink = forwardRef< - HTMLAnchorElement, - { - prefix: ReactNode; - children: string; - to: string; - target?: string; - } ->(({ to, prefix, children, target }, forwardedRef) => { - return ( - - {prefix} - - {children} - - - ); -}); - const NavigationItems = ({ items, }: { @@ -186,6 +127,19 @@ const NavigationItems = ({ ); }; +type DashboardProps = { + user: User; + projects?: Array; + templates?: Array; + userPlanFeatures: UserPlanFeatures; + publisherHost: string; + projectToClone?: { + authToken: string; + id: string; + title: string; + }; +}; + export const Dashboard = ({ user, projects, @@ -260,20 +214,18 @@ export const Dashboard = ({ -
-
- {projects && ( - - )} - {templates && ( - - )} -
-
+ + {projects && ( + + )} + {templates && ( + + )} +
diff --git a/apps/builder/app/dashboard/projects/projects.tsx b/apps/builder/app/dashboard/projects/projects.tsx index f45527c64e26..a548aa519dbe 100644 --- a/apps/builder/app/dashboard/projects/projects.tsx +++ b/apps/builder/app/dashboard/projects/projects.tsx @@ -27,7 +27,7 @@ export const Projects = ({ {projects.length === 0 && }