diff --git a/public/config.json b/public/config.json index 74e509fee59..9398e28c410 100644 --- a/public/config.json +++ b/public/config.json @@ -1,5 +1,4 @@ { - "dashboard_url": "https://dashboard.coronasafe.in", "github_url": "https://github.com/coronasafe", "coronasafe_url": "https://coronasafe.network?ref=care", "site_url": "care.coronasafe.in", @@ -23,4 +22,4 @@ "sample_format_asset_import": "https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=11JaEhNHdyCHth4YQs_44YaRlP77Rrqe81VSEfg1glko&exportFormat=xlsx", "sample_format_external_result_import": "/External-Results-Template.csv", "enable_abdm": true -} \ No newline at end of file +} diff --git a/src/Common/hooks/useConfig.ts b/src/Common/hooks/useConfig.ts index 15e456ea571..79addd71c8b 100644 --- a/src/Common/hooks/useConfig.ts +++ b/src/Common/hooks/useConfig.ts @@ -8,7 +8,7 @@ interface ILogo { } export interface IConfig { - dashboard_url: string; + dashboard_url?: string; github_url: string; coronasafe_url: string; site_url: string; diff --git a/src/Components/Common/Sidebar/Sidebar.tsx b/src/Components/Common/Sidebar/Sidebar.tsx index 9d378df4267..af450d9583d 100644 --- a/src/Components/Common/Sidebar/Sidebar.tsx +++ b/src/Components/Common/Sidebar/Sidebar.tsx @@ -147,13 +147,15 @@ const StatelessSidebar = ({ handleOverflow={handleOverflow} onClickCB={() => onItemClick && onItemClick(false)} /> - } - external - handleOverflow={handleOverflow} - /> + {dashboard_url && ( + } + external + handleOverflow={handleOverflow} + /> + )}