improve DialogButton

This commit is contained in:
josc146
2024-03-26 21:25:13 +08:00
parent 08bc342fd6
commit 3cef51144f
6 changed files with 31 additions and 18 deletions

View File

@@ -284,7 +284,7 @@ const CompletionPanel: FC = observer(() => {
onSubmit(commonStore.completionSubmittedPrompt);
}} />
<DialogButton className="grow" text={t('Reset')} title={t('Reset')}
contentText={t('Are you sure you want to reset this page? It cannot be undone.')}
content={t('Are you sure you want to reset this page? It cannot be undone.')}
onConfirm={() => {
setPreset(defaultPresets.find((preset) => preset.name === name)!);
}} />