mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	refactor: remove unused props (#18240)
This commit is contained in:
		
							parent
							
								
									bb775110ef
								
							
						
					
					
						commit
						81d959a27e
					
				| @ -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))} | ||||
|  | ||||
| @ -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) { | ||||
|  | ||||
| @ -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} | ||||
|  | ||||
| @ -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) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user