Delete Revenue

fun DeleteRevenue(show: MutableState<Boolean>, viewModel: RevenueRelatedScreenViewModel, revenue: Revenue, onDelete: () -> Unit)

Custom EquinoxAlertDialog used to warn the user about the deletion of a Revenue

Parameters

show

Whether the dialog is shown

viewModel

The support viewmodel for the screen

revenue

The revenue to delete

onDelete

The action to execute when the user confirm the revenue deletion