From 320c80d8cd9cea9bca872644d58092f50711ac1f Mon Sep 17 00:00:00 2001 From: Jixun Wu 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="放弃未储存的更改" + />