Skip to content

Commit

Permalink
Rename the CancelConfirmationDialogView to `CancelConfirmationDialo…
Browse files Browse the repository at this point in the history
…gContainer` component.
  • Loading branch information
Artem-Semenov-dev committed Oct 9, 2024
1 parent f808d7f commit 8b6e2ba
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public fun ModalWindow(
}
}
if (cancelConfirmationShown.value && cancelConfirmationDialog != null) {
CancelConfirmationDialogView(
CancelConfirmationDialogContainer(
onCancel = { cancelConfirmationShown.value = false },
onConfirm = { onCancel() },
content = cancelConfirmationDialog
Expand Down Expand Up @@ -146,13 +146,13 @@ public data class ModalWindowConfig(
/**
* A type of the cancel confirmation modal window.
*
* @see CancelConfirmationDialogView
* @see CancelConfirmationDialogContainer
*/
public typealias CancelConfirmationDialog =
@Composable BoxScope.(onConfirm: () -> Unit, onCancel: () -> Unit) -> Unit

/**
* The cancel confirmation dialog for the [ModalWindow] component.
* The container for the cancel confirmation dialog of the [ModalWindow] component.
*
* This dialog confirms or denies the intention of the user to close the main modal window.
*
Expand All @@ -161,7 +161,7 @@ public typealias CancelConfirmationDialog =
* @param content The content to display as a dialog.
*/
@Composable
private fun CancelConfirmationDialogView(
private fun CancelConfirmationDialogContainer(
onCancel: () -> Unit,
onConfirm: () -> Unit,
content: CancelConfirmationDialog
Expand Down

0 comments on commit 8b6e2ba

Please sign in to comment.