Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Feature use full screen modal for confirmation box when deleting cards #73

Conversation

cdxker
Copy link
Member

@cdxker cdxker commented Jul 1, 2023

No description provided.

@cdxker
Copy link
Member Author

cdxker commented Jul 1, 2023

popup

@cdxker cdxker changed the title 71 feature use full screen modal for confirmation box when deleting cards 1 Feature use full screen modal for confirmation box when deleting cards 1 Jul 1, 2023
@cdxker cdxker changed the title Feature use full screen modal for confirmation box when deleting cards 1 Feature use full screen modal for confirmation box when deleting cards Jul 1, 2023
src/components/Atoms/ConfirmModal.tsx Outdated Show resolved Hide resolved
src/components/CardMetadataDisplay.tsx Outdated Show resolved Hide resolved
src/components/ScoreCard.tsx Show resolved Hide resolved
Copy link
Contributor

@densumesh densumesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}
alert("Failed to delete card");
props.setOnDelete(() => {
// eslint-disable-next-line solid/reactivity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there really no way to avoid disabling here?

Copy link
Member Author

@cdxker cdxker Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is solid expects setOnDelete to get either a value, or a function that returns a value. Because the value is a function I think its not overloading properly.

If I was able to do

props.setOnDelete( () => { console.log("hi") })

There won't be an issue, but I have to do

props.setOnDelete( () =>  () => console.log("hi") )
// or
props.setOnDelete( () => { return () => { console.log("hi") } } )

}
alert("Failed to delete card");
props.setOnDelete(() => {
// eslint-disable-next-line solid/reactivity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here

@skeptrunedev skeptrunedev force-pushed the 71-feature-use-full-screen-modal-for-confirmation-box-when-deleting-cards-1 branch from 47bcf90 to 9ec22d0 Compare July 2, 2023 19:26
@cdxker cdxker merged commit 52ceead into main Jul 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: use full-screen-modal for confirmation box when deleting cards
3 participants