Rename handleEvents to handleEvent
This commit is contained in:
parent
6acd0ed687
commit
7ad9c8f687
94 changed files with 182 additions and 182 deletions
|
|
@ -52,7 +52,7 @@ class KnockRequestsBannerPresenter(
|
|||
}
|
||||
}
|
||||
|
||||
fun handleEvents(event: KnockRequestsBannerEvents) {
|
||||
fun handleEvent(event: KnockRequestsBannerEvents) {
|
||||
when (event) {
|
||||
is KnockRequestsBannerEvents.AcceptSingleRequest -> {
|
||||
sessionCoroutineScope.acceptSingleKnockRequest(
|
||||
|
|
@ -73,7 +73,7 @@ class KnockRequestsBannerPresenter(
|
|||
displayAcceptError = showAcceptError.value,
|
||||
canAccept = permissions.canAccept,
|
||||
isVisible = shouldShowBanner,
|
||||
eventSink = ::handleEvents,
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class KnockRequestsListPresenter(
|
|||
|
||||
val coroutineScope = rememberCoroutineScope()
|
||||
|
||||
fun handleEvents(event: KnockRequestsListEvents) {
|
||||
fun handleEvent(event: KnockRequestsListEvents) {
|
||||
when (event) {
|
||||
KnockRequestsListEvents.AcceptAll -> {
|
||||
currentAction = KnockRequestsAction.AcceptAll
|
||||
|
|
@ -73,7 +73,7 @@ class KnockRequestsListPresenter(
|
|||
currentAction = currentAction,
|
||||
permissions = permissions,
|
||||
asyncAction = asyncAction.value,
|
||||
eventSink = ::handleEvents
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue