From 84ebf7fde61da6e077e5fbf4cf5b42fd485198eb Mon Sep 17 00:00:00 2001 From: Nishchit14 Date: Tue, 2 May 2023 14:44:54 +0530 Subject: [PATCH] ui: updated layout for InviteInfo --- .../src/components/tabs/home/Home.tsx | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/platform/firecamp-platform/src/components/tabs/home/Home.tsx b/platform/firecamp-platform/src/components/tabs/home/Home.tsx index 224f58ee..54e9f8d6 100644 --- a/platform/firecamp-platform/src/components/tabs/home/Home.tsx +++ b/platform/firecamp-platform/src/components/tabs/home/Home.tsx @@ -28,19 +28,19 @@ const Home: FC = () => { }; return ( - - - - -
- Welcome To Firecamp! - - This campsite is designed for you, giving you the power to do - what you love with APIs. - -
-
- + + +
+ Welcome To Firecamp! + + This campsite is designed for you, giving you the power to do what + you love with APIs. + +
+
+ + +
Popular Requests @@ -71,13 +71,14 @@ const Home: FC = () => {
-
-
-
- - - -
+ + + + + + + + ); }; @@ -233,12 +234,12 @@ interface IRequestItem { openRequest: () => void; } -const InviteInfo = ({ organisation = true }) => { +const InviteInfo = ({ organisation = true, info = {workspace: 'My Workspace', organisation: 'Firecamp'} }) => { return ( -
+

{organisation - ? "You're in the `My Workspace` workspace of the `Firecamp` organization." + ? `You're in the ${info.workspace} workspace of the ${info.organisation} organization.` : `You're right now in your personal workspace`}