Fix AddSendViewModel name (#522)

This commit is contained in:
David Perez
2024-01-07 14:06:43 -06:00
committed by Álison Fernandes
parent 6470959085
commit 87568287af
4 changed files with 4 additions and 4 deletions

View File

@@ -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()

View File

@@ -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(