Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: ModelCheckDelete Refactor #70

Open
robxbob opened this issue Jul 29, 2024 · 0 comments
Open

Feature: ModelCheckDelete Refactor #70

robxbob opened this issue Jul 29, 2024 · 0 comments

Comments

@robxbob
Copy link
Collaborator

robxbob commented Jul 29, 2024

Objective:
Needs more customizability as a component and will need the props described below. Will be using the SearchResults component under the hood.

Features:

  • Rename to CheckDelete
  • CheckDeleteProps
    • results: CheckDelete
  • Can customize further using the SearchResult reusable component.

Usage:
Some structure like below where CheckDelete's Affected, Deleted, and Prevented is a SearchResult component.

<CheckDelete>
   <CheckDelete.Affected>
   <CheckDelete.Deleted>
   <CheckDelete.Prevented>
</CheckDelete>

This way users can use it like so:

<Dialog>
        <Dialog.Header>
               <Dialog.Title/>
               <Dialog.Description />
        </Dialog.Header>
	<Dialog.Content>
                <CheckDelete>
                         <Dialog.Description  />
                         <CheckDelete.Affected  />
                         <Dialog.Description/>
                         <CheckDelete.Deleted />
                         <Dialog.Description/>
                        <CheckDelete.Prevented />
                 </CheckDelete>
        </Dialog.Content>

      <CheckDelete/>
</Dialog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant