refactor: remove unused props (#18240)

This commit is contained in:
Jason Rasmussen 2025-05-12 18:31:37 -04:00 committed by GitHub
parent bb775110ef
commit 81d959a27e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2 additions and 11 deletions

View File

@ -70,8 +70,6 @@
<ConfirmModal <ConfirmModal
title={$t('editor_close_without_save_title')} title={$t('editor_close_without_save_title')}
prompt={$t('editor_close_without_save_prompt')} prompt={$t('editor_close_without_save_prompt')}
cancelText={$t('no')}
cancelColor="secondary"
confirmColor="danger" confirmColor="danger"
confirmText={$t('close')} confirmText={$t('close')}
onClose={(confirmed) => (confirmed ? onConfirm() : ($showCancelConfirmDialog = false))} onClose={(confirmed) => (confirmed ? onConfirm() : ($showCancelConfirmDialog = false))}

View File

@ -66,7 +66,6 @@
title: $t('purchase_remove_product_key'), title: $t('purchase_remove_product_key'),
prompt: $t('purchase_remove_product_key_prompt'), prompt: $t('purchase_remove_product_key_prompt'),
confirmText: $t('remove'), confirmText: $t('remove'),
cancelText: $t('cancel'),
}); });
if (!isConfirmed) { if (!isConfirmed) {
@ -86,7 +85,6 @@
title: $t('purchase_remove_server_product_key'), title: $t('purchase_remove_server_product_key'),
prompt: $t('purchase_remove_server_product_key_prompt'), prompt: $t('purchase_remove_server_product_key_prompt'),
confirmText: $t('remove'), confirmText: $t('remove'),
cancelText: $t('cancel'),
}); });
if (!isConfirmed) { if (!isConfirmed) {

View File

@ -8,8 +8,6 @@
prompt?: string; prompt?: string;
confirmText?: string; confirmText?: string;
confirmColor?: Color; confirmColor?: Color;
cancelText?: string;
cancelColor?: Color;
disabled?: boolean; disabled?: boolean;
size?: 'small' | 'medium'; size?: 'small' | 'medium';
onClose: (confirmed: boolean) => void; onClose: (confirmed: boolean) => void;
@ -21,8 +19,6 @@
prompt = $t('are_you_sure_to_do_this'), prompt = $t('are_you_sure_to_do_this'),
confirmText = $t('confirm'), confirmText = $t('confirm'),
confirmColor = 'danger', confirmColor = 'danger',
cancelText = $t('cancel'),
cancelColor = 'secondary',
disabled = false, disabled = false,
size = 'small', size = 'small',
onClose, onClose,
@ -43,8 +39,8 @@
<ModalFooter> <ModalFooter>
<div class="flex gap-3 w-full"> <div class="flex gap-3 w-full">
<Button shape="round" color={cancelColor} fullWidth onclick={() => onClose(false)}> <Button shape="round" color="secondary" fullWidth onclick={() => onClose(false)}>
{cancelText} {$t('cancel')}
</Button> </Button>
<Button shape="round" color={confirmColor} fullWidth onclick={handleConfirm} {disabled}> <Button shape="round" color={confirmColor} fullWidth onclick={handleConfirm} {disabled}>
{confirmText} {confirmText}

View File

@ -120,7 +120,6 @@
title: $t('delete_tag'), title: $t('delete_tag'),
prompt: $t('delete_tag_confirmation_prompt', { values: { tagName: tag.value } }), prompt: $t('delete_tag_confirmation_prompt', { values: { tagName: tag.value } }),
confirmText: $t('delete'), confirmText: $t('delete'),
cancelText: $t('cancel'),
}); });
if (!isConfirm) { if (!isConfirm) {