Lightmode and button fixes
This commit is contained in:
@@ -23,7 +23,9 @@ export const Tab = ({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`max-w-[10rem] md:flex-grow ${
|
className={`max-w-[10rem] md:flex-grow ${
|
||||||
active ? 'bg-primaryDark' : 'bg-secondaryDark'
|
active
|
||||||
|
? 'bg-gray-100 dark:bg-primaryDark'
|
||||||
|
: 'bg-gray-300 dark:bg-secondaryDark'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import type React from 'react';
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
|
||||||
import { ErrorBoundary } from 'react-error-boundary';
|
import { ErrorBoundary } from 'react-error-boundary';
|
||||||
import { FiMessageCircle, FiSettings } from 'react-icons/fi';
|
import { FiMessageCircle, FiSettings, FiTag } from 'react-icons/fi';
|
||||||
import { RiMindMap, RiRoadMapLine } from 'react-icons/ri';
|
import { RiMindMap, RiRoadMapLine } from 'react-icons/ri';
|
||||||
import { VscExtensions } from 'react-icons/vsc';
|
import { VscExtensions } from 'react-icons/vsc';
|
||||||
|
|
||||||
@@ -55,6 +55,12 @@ export const Layout = ({
|
|||||||
link: routes.extensions().link,
|
link: routes.extensions().link,
|
||||||
active: route.name === 'extensions',
|
active: route.name === 'extensions',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Temp',
|
||||||
|
icon: <FiTag />,
|
||||||
|
link: routes.extensions().link,
|
||||||
|
active: route.name === 'map',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -72,7 +78,7 @@ export const Layout = ({
|
|||||||
</div>
|
</div>
|
||||||
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
||||||
<div className="flex h-full w-full flex-col bg-gray-300 dark:bg-secondaryDark">
|
<div className="flex h-full w-full flex-col bg-gray-300 dark:bg-secondaryDark">
|
||||||
<div className="flex w-full pt-1 dark:bg-primaryDark">
|
<div className="flex w-full bg-gray-100 pt-1 dark:bg-primaryDark">
|
||||||
<div className="h-8">
|
<div className="h-8">
|
||||||
<IconButton
|
<IconButton
|
||||||
className="mx-1 rounded-b-none p-3"
|
className="mx-1 rounded-b-none p-3"
|
||||||
@@ -94,6 +100,7 @@ export const Layout = ({
|
|||||||
activeRight={tabs[index + 1]?.active}
|
activeRight={tabs[index + 1]?.active}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
<div className="-z-10 flex-grow shadow-md" />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-grow">{children}</div>
|
<div className="flex flex-grow">{children}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type React from 'react';
|
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 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 { Card } from '@app/components/generic/Card';
|
||||||
import { Hashicon } from '@emeraldpay/hashicon-react';
|
import { Hashicon } from '@emeraldpay/hashicon-react';
|
||||||
import { useAppSelector } from '@hooks/useAppSelector';
|
import { useAppSelector } from '@hooks/useAppSelector';
|
||||||
@@ -22,11 +22,7 @@ export const Info = (): JSX.Element => {
|
|||||||
<div className="flex h-full flex-col gap-4 p-4 xl:flex-row">
|
<div className="flex h-full flex-col gap-4 p-4 xl:flex-row">
|
||||||
<Card
|
<Card
|
||||||
title="Connected Node Details"
|
title="Connected Node Details"
|
||||||
actions={
|
actions={<IconButton icon={<FiRefreshCw />} />}
|
||||||
<Button className="truncate" icon={<FiRefreshCw />}>
|
|
||||||
Refresh Node info
|
|
||||||
</Button>
|
|
||||||
}
|
|
||||||
className="xl:w-3/5"
|
className="xl:w-3/5"
|
||||||
>
|
>
|
||||||
<div className="m-auto flex flex-col gap-2">
|
<div className="m-auto flex flex-col gap-2">
|
||||||
@@ -35,9 +31,17 @@ export const Info = (): JSX.Element => {
|
|||||||
{node?.user?.longName || 'Unknown'}
|
{node?.user?.longName || 'Unknown'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/* <img
|
||||||
|
src="https://docs.rakwireless.com/assets/images/wisblock/rak5005-o/overview/RAK5005-O_buy.png"
|
||||||
|
className="-rotate-90"
|
||||||
|
/> */}
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card title="Debug Information" className="flex-grow">
|
<Card
|
||||||
|
title="Debug Information"
|
||||||
|
className="flex-grow"
|
||||||
|
actions={<IconButton icon={<FiClipboard />} />}
|
||||||
|
>
|
||||||
<JSONPretty className="overflow-y-auto" data={hardwareInfo} />
|
<JSONPretty className="overflow-y-auto" data={hardwareInfo} />
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import type React from 'react';
|
import type React from 'react';
|
||||||
|
|
||||||
import { AnimatePresence, m } from 'framer-motion';
|
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 { Card } from '@app/components/generic/Card';
|
||||||
import { clearLogs } from '@app/core/slices/meshtasticSlice';
|
import { clearLogs } from '@app/core/slices/meshtasticSlice';
|
||||||
import { useAppDispatch } from '@app/hooks/useAppDispatch';
|
import { useAppDispatch } from '@app/hooks/useAppDispatch';
|
||||||
@@ -57,14 +57,12 @@ export const Logs = (): JSX.Element => {
|
|||||||
<Card
|
<Card
|
||||||
title="Device Logs"
|
title="Device Logs"
|
||||||
actions={
|
actions={
|
||||||
<Button
|
<IconButton
|
||||||
|
icon={<FiTrash />}
|
||||||
onClick={(): void => {
|
onClick={(): void => {
|
||||||
dispatch(clearLogs());
|
dispatch(clearLogs());
|
||||||
}}
|
}}
|
||||||
icon={<FiX />}
|
/>
|
||||||
>
|
|
||||||
Clear Logs
|
|
||||||
</Button>
|
|
||||||
}
|
}
|
||||||
className="flex-grow overflow-y-auto"
|
className="flex-grow overflow-y-auto"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user