From df0aa307ad1ff967caf5234bb169bc9becd9ba19 Mon Sep 17 00:00:00 2001 From: pranalidhanavade Date: Mon, 11 Mar 2024 20:29:03 +0530 Subject: [PATCH] feat: custom component for logo file and platform name Signed-off-by: pranalidhanavade --- src/app/NavBarSidebar.astro | 12 ++---------- src/app/NavBarStacked.astro | 12 ++---------- src/commonComponents/LogoFile.tsx | 20 ++++++++++++++++++++ src/commonComponents/PublicNavbar.astro | 12 ++---------- src/components/Authentication/NavBar.tsx | 12 ++---------- src/components/SignUpForm.tsx | 6 ++---- src/pages/user/[user].astro | 12 ++---------- 7 files changed, 32 insertions(+), 54 deletions(-) create mode 100644 src/commonComponents/LogoFile.tsx diff --git a/src/app/NavBarSidebar.astro b/src/app/NavBarSidebar.astro index 01ecfa762..1c80d5ee3 100644 --- a/src/app/NavBarSidebar.astro +++ b/src/app/NavBarSidebar.astro @@ -11,7 +11,7 @@ import SignOutButton from '../components/SignOutButton/index'; import AgentHealth from '../commonComponents/AgentHealth'; import { getFromCookies } from '../api/Auth'; import { RolePermissions } from '../config/permissions'; -import { envConfig } from '../config/envConfig'; +import LogoFile from '../commonComponents/LogoFile.jsx'; const { hideOrgAgent } = Astro.props; @@ -70,15 +70,7 @@ const permittedPages = RolePermissions.find( pathRoutes.users.dashboard} class="flex ml-2 md:mr-24" > - {`${envConfig.PLATFORM_DATA.name} - {envConfig.PLATFORM_DATA.name} +
diff --git a/src/app/NavBarStacked.astro b/src/app/NavBarStacked.astro index 44f9f6da0..35903f0b4 100644 --- a/src/app/NavBarStacked.astro +++ b/src/app/NavBarStacked.astro @@ -1,5 +1,5 @@ --- -import { envConfig } from "../config/envConfig"; +import LogoFile from "../commonComponents/LogoFile"; ---