From 5ead9f2f7bb76aa7223dfa7b11d7b00ff5dfbb91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Thu, 15 Jun 2023 20:52:41 +0100 Subject: [PATCH] chore: update wording for discard settings --- src/features/settings/Settings.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/features/settings/Settings.tsx b/src/features/settings/Settings.tsx index c26346e..3d93f7b 100644 --- a/src/features/settings/Settings.tsx +++ b/src/features/settings/Settings.tsx @@ -4,6 +4,8 @@ import { Center, Flex, HStack, + Icon, + IconButton, Menu, MenuButton, MenuItem, @@ -21,7 +23,7 @@ import { } from '@chakra-ui/react'; import { PanelQMCv2Key } from './panels/PanelQMCv2Key'; import { useState } from 'react'; -import { MdExpandMore, MdMenu } from 'react-icons/md'; +import { MdExpandMore, MdMenu, MdOutlineSettingsBackupRestore } from 'react-icons/md'; import { useAppDispatch } from '~/hooks'; import { commitStagingChange, discardStagingChanges } from './settingsSlice'; @@ -104,9 +106,14 @@ export function Settings() { - + } + onClick={handleResetSettings} + colorScheme="red" + variant="ghost" + title="放弃未储存的更改,将设定还原为储存前的状态。" + aria-label="放弃未储存的更改" + />