{label}
{subtext && (
@@ -83,3 +86,10 @@ export const ActionButton = (
);
};
+
+// ok currently in the middle of making the actions on home, looseleaf, and pub appear at the top by the page title
+// i then need to find a good place for the publication list in the footer
+// but first i really need to refactor action button
+// 1) make a primary variant
+// 2) make a secondary variant
+//
\ No newline at end of file
diff --git a/components/PageLayouts/DashboardLayout.tsx b/components/PageLayouts/DashboardLayout.tsx
index c33256f5..f578e73b 100644
--- a/components/PageLayouts/DashboardLayout.tsx
+++ b/components/PageLayouts/DashboardLayout.tsx
@@ -141,8 +141,8 @@ export function DashboardLayout<
currentPage: navPages;
publication?: string;
profileDid?: string;
- actions: React.ReactNode;
- pageTitle?: React.ReactNode;
+ actions?: React.ReactNode;
+ pageTitle?: string;
}) {
const searchParams = useSearchParams();
const tabParam = searchParams.get("tab");
@@ -189,7 +189,9 @@ export function DashboardLayout<
ref={ref}
id="home-content"
>
- {props.pageTitle}
+ {props.pageTitle && (
+
+ )}
{Object.keys(props.tabs).length <= 1 && !controls ? null : (
<>
@@ -250,11 +252,6 @@ export function DashboardLayout<
currentPublicationUri={props.publication}
currentProfileDid={props.profileDid}
/>
- {props.actions && (
-
- {props.actions}
-
- )}
@@ -263,7 +260,7 @@ export function DashboardLayout<
export const PageTitle = (props: {
pageTitle: string;
- controls: React.ReactNode;
+ actions: React.ReactNode;
}) => {
return (