From 1f98face5b65e5b4126cb8593e5a3dc7051c6441 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 11 Aug 2023 12:38:07 +0300 Subject: [PATCH] fix: pass props for page wrapper --- src/components/LandingPage.tsx | 5 ++++- src/components/LayoutComponent.tsx | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/LandingPage.tsx b/src/components/LandingPage.tsx index d6bc3dc6..a53de379 100644 --- a/src/components/LandingPage.tsx +++ b/src/components/LandingPage.tsx @@ -5,7 +5,10 @@ import QuickStartBar from './QuickStartBar' function LandingPage() { return ( <> - } /> + } + rightImageSrc="src/assets/bg-img/landing-page-bg.png" + /> ) diff --git a/src/components/LayoutComponent.tsx b/src/components/LayoutComponent.tsx index 9fe53758..29d1d35c 100644 --- a/src/components/LayoutComponent.tsx +++ b/src/components/LayoutComponent.tsx @@ -4,6 +4,7 @@ import './layout.css' type LeftProps = { breadcrumbBar?: ReactNode content: ReactNode + rightImageSrc?: string } function LayoutComponent(props: LeftProps) { return ( @@ -12,16 +13,16 @@ function LayoutComponent(props: LeftProps) { {props.breadcrumbBar}
{props.content}
- + ) } -function LayoutRight() { +function LayoutRight({ rightImageSrc }: { rightImageSrc?: string }) { return (
- + {/* */} {/* */}