Skip to content

Commit

Permalink
Update the documentation for the CancelConfirmationDialog typealias.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-Semenov-dev committed Oct 9, 2024
1 parent 8b6e2ba commit e1aec90
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ public data class ModalWindowConfig(
)

/**
* A type of the cancel confirmation modal window.
* A type of the cancel confirmation dialog.
*
* @see CancelConfirmationDialogContainer
* The cancel confirmation dialog prompts the user to confirm whether they want to close
* the modal. It receives two parameters:
* - `onConfirm`: A callback triggered when the user confirms the cancellation.
* - `onCancel`: A callback triggered when the user cancels the cancellation
* (i.e., decides not to close the modal).
*/
public typealias CancelConfirmationDialog =
@Composable BoxScope.(onConfirm: () -> Unit, onCancel: () -> Unit) -> Unit
Expand Down

0 comments on commit e1aec90

Please sign in to comment.