refactor: remove unused props ()

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
web/src
lib
components
asset-viewer/editor
user-settings-page
modals
routes/(user)/tags/[[photos=photos]]/[[assetId=id]]

View file

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

View file

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

View file

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

View file

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