From 488d794c691403a0f6f4a09822bdd16e7a6ba8e6 Mon Sep 17 00:00:00 2001 From: pious2847 Date: Sun, 27 Apr 2025 07:51:03 +0000 Subject: [PATCH] Update ActionButtons component to make label prop optional and enhance Sidebar with social media buttons --- app/components/common/ActionButtons.tsx | 2 +- app/components/common/SideBar.tsx | 12 +++++++++++- app/studio/layout.tsx | 13 ++++++++++--- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/app/components/common/ActionButtons.tsx b/app/components/common/ActionButtons.tsx index 211e851..626808b 100644 --- a/app/components/common/ActionButtons.tsx +++ b/app/components/common/ActionButtons.tsx @@ -6,7 +6,7 @@ import React from 'react' export interface ActionButtonsProps { icon: React.ReactNode, - label: string, + label?: string, buttonWidth?: number, isGhost?: boolean, onClick?: () => void diff --git a/app/components/common/SideBar.tsx b/app/components/common/SideBar.tsx index 2ebce3c..f0452e2 100644 --- a/app/components/common/SideBar.tsx +++ b/app/components/common/SideBar.tsx @@ -9,7 +9,7 @@ import { TextSelect } from "lucide-react"; import ActionButtons from "./ActionButtons"; -import { ArrowLeft2, ArrowRight2, AudioSquare, Cardano, CodeCircle, DocumentUpload, Element2, ExportSquare, Link, LinkSquare, Magicpen, MessageAdd1, MessageQuestion, Next, Note, Previous, Setting2, Shapes, Smallcaps, Text, Video, VideoHorizontal } from 'iconsax-react'; +import { ArrowLeft2, ArrowRight2, AudioSquare, Cardano, CodeCircle, DocumentUpload, Element2, ExportSquare, Link, LinkSquare, Magicpen, MessageAdd1, MessageQuestion, Next, Note, Previous, Setting2, Shapes, Smallcaps, Snapchat, Spotify, Text, Video, VideoHorizontal, Whatsapp } from 'iconsax-react'; @@ -70,6 +70,16 @@ const Sidebar = () => { } label="First page" isGhost={false} buttonWidth={140} /> } label="Last page" isGhost={false} buttonWidth={140} /> + +
+ } label="" isGhost={false} buttonWidth={140} /> + } label="" isGhost={false} buttonWidth={140} /> + } label="" isGhost={false} buttonWidth={140} /> + } label="" isGhost={false} buttonWidth={140} /> + } label="" isGhost={false} buttonWidth={140} /> + } label="" isGhost={false} buttonWidth={140} /> + } label="" isGhost={false} buttonWidth={140} /> +
DFHDSFGSDFGHSFHWd. odit mibus quas porro, modi corrupti repudiandae an diff --git a/app/studio/layout.tsx b/app/studio/layout.tsx index 750e5a4..e7a7871 100644 --- a/app/studio/layout.tsx +++ b/app/studio/layout.tsx @@ -78,9 +78,16 @@ function layout({ children }: Props) {
{/* Sidebar */} - - -
{children}
+
+ {/* Inner NavBar */} +
+
+

Pages 1

+

Pages 1

+
+
+ {children} +