mirror of
https://github.com/bitwarden/android.git
synced 2026-06-08 08:06:32 -05:00
Fix AddSendViewModel name (#522)
This commit is contained in:
committed by
Álison Fernandes
parent
6470959085
commit
87568287af
@@ -64,7 +64,7 @@ import com.x8bit.bitwarden.ui.tools.feature.send.SendExpirationDateChooser
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun AddSendScreen(
|
||||
viewModel: NewSendViewModel = hiltViewModel(),
|
||||
viewModel: AddSendViewModel = hiltViewModel(),
|
||||
onNavigateBack: () -> Unit,
|
||||
) {
|
||||
val state by viewModel.stateFlow.collectAsStateWithLifecycle()
|
||||
|
||||
@@ -18,7 +18,7 @@ private const val KEY_STATE = "state"
|
||||
*/
|
||||
@Suppress("TooManyFunctions")
|
||||
@HiltViewModel
|
||||
class NewSendViewModel @Inject constructor(
|
||||
class AddSendViewModel @Inject constructor(
|
||||
savedStateHandle: SavedStateHandle,
|
||||
) : BaseViewModel<AddSendState, AddSendEvent, AddSendAction>(
|
||||
initialState = savedStateHandle[KEY_STATE] ?: AddSendState(
|
||||
|
||||
Reference in New Issue
Block a user