From 6d79f197e98a0e53fa92f5a4e017ac9fec922ede Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Fri, 25 Feb 2022 23:38:25 +1100 Subject: [PATCH] Lightmode and button fixes --- src/components/Tab.tsx | 4 +++- src/components/layout/index.tsx | 11 +++++++++-- src/pages/Extensions/Info.tsx | 20 ++++++++++++-------- src/pages/Extensions/Logs.tsx | 12 +++++------- 4 files changed, 29 insertions(+), 18 deletions(-) diff --git a/src/components/Tab.tsx b/src/components/Tab.tsx index 506992b9..2b5f96d9 100644 --- a/src/components/Tab.tsx +++ b/src/components/Tab.tsx @@ -23,7 +23,9 @@ export const Tab = ({ return (
, + link: routes.extensions().link, + active: route.name === 'map', + }, ]; return ( @@ -72,7 +78,7 @@ export const Layout = ({
-
+
))} +
{children}
diff --git a/src/pages/Extensions/Info.tsx b/src/pages/Extensions/Info.tsx index a64043ea..70bbe297 100644 --- a/src/pages/Extensions/Info.tsx +++ b/src/pages/Extensions/Info.tsx @@ -1,9 +1,9 @@ import type React from 'react'; -import { FiRefreshCw } from 'react-icons/fi'; +import { FiClipboard, FiRefreshCw } from 'react-icons/fi'; import JSONPretty from 'react-json-pretty'; -import { Button } from '@app/components/generic/button/Button'; +import { IconButton } from '@app/components/generic/button/IconButton'; import { Card } from '@app/components/generic/Card'; import { Hashicon } from '@emeraldpay/hashicon-react'; import { useAppSelector } from '@hooks/useAppSelector'; @@ -22,11 +22,7 @@ export const Info = (): JSX.Element => {
}> - Refresh Node info - - } + actions={} />} className="xl:w-3/5" >
@@ -35,9 +31,17 @@ export const Info = (): JSX.Element => { {node?.user?.longName || 'Unknown'}
+ {/* */} - + } />} + >
diff --git a/src/pages/Extensions/Logs.tsx b/src/pages/Extensions/Logs.tsx index e38d0ad1..e90b13c9 100644 --- a/src/pages/Extensions/Logs.tsx +++ b/src/pages/Extensions/Logs.tsx @@ -1,9 +1,9 @@ import type React from 'react'; import { AnimatePresence, m } from 'framer-motion'; -import { FiArrowRight, FiPaperclip, FiX } from 'react-icons/fi'; +import { FiArrowRight, FiPaperclip, FiTrash } from 'react-icons/fi'; -import { Button } from '@app/components/generic/button/Button'; +import { IconButton } from '@app/components/generic/button/IconButton'; import { Card } from '@app/components/generic/Card'; import { clearLogs } from '@app/core/slices/meshtasticSlice'; import { useAppDispatch } from '@app/hooks/useAppDispatch'; @@ -57,14 +57,12 @@ export const Logs = (): JSX.Element => { } onClick={(): void => { dispatch(clearLogs()); }} - icon={} - > - Clear Logs - + /> } className="flex-grow overflow-y-auto" >