Lightmode and button fixes

This commit is contained in:
Sacha Weatherstone
2022-02-25 23:38:25 +11:00
parent f88322cd62
commit 6d79f197e9
4 changed files with 29 additions and 18 deletions
+5 -7
View File
@@ -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 => {
<Card
title="Device Logs"
actions={
<Button
<IconButton
icon={<FiTrash />}
onClick={(): void => {
dispatch(clearLogs());
}}
icon={<FiX />}
>
Clear Logs
</Button>
/>
}
className="flex-grow overflow-y-auto"
>