From f9f39c6a17ebe0b6e4b752472fa92bd69e78d515 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 11 Aug 2023 14:38:26 +0300 Subject: [PATCH] feat: make advanced settings optional --- src/components/Titles.tsx | 11 +++++++---- src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Titles.tsx b/src/components/Titles.tsx index c630b978..2f0e4a86 100644 --- a/src/components/Titles.tsx +++ b/src/components/Titles.tsx @@ -7,16 +7,19 @@ import Icon from './Icon' type TitlesProps = { title: string subtitle: string + isAdvancedSettings?: boolean } -const Titles = ({ title, subtitle }: TitlesProps) => { +const Titles = ({ title, subtitle, isAdvancedSettings }: TitlesProps) => { return ( {title} - + {isAdvancedSettings && ( + + )} {subtitle} diff --git a/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx b/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx index 03499fa8..93b6527f 100644 --- a/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx +++ b/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx @@ -35,6 +35,7 @@ const DeviceHeanlthCheckContent = () => {