feat: New confirmation modal when deleting library components (#1906)

* feat: New units message on delete confirm modal when deleting components
* test: Tests for new delete confirmation messages
* refactor: useComponentsFromSearchIndex added
* refactor: Move fetch units to ComponentDeleter
* style: Delete unnecessary code
This commit is contained in:
Chris Chávez
2025-05-21 12:04:19 -05:00
committed by GitHub
parent e212e1a1ef
commit 0e40aa295d
8 changed files with 146 additions and 24 deletions

View File

@@ -142,6 +142,7 @@ export interface ContentHit extends BaseContentHit {
content?: ContentDetails;
lastPublished: number | null;
collections: { displayName?: string[], key?: string[] };
units: { displayName?: string[], key?: string[] };
published?: ContentPublishedData;
publishStatus: PublishStatus;
formatted: BaseContentHit['formatted'] & { published?: ContentPublishedData, };