Merge branch 'frontend/fix-editor-hilt' into 'main'

fix: @HiltViewmodel deleted as there is no Inject constructor

See merge request EmmaVandewalle/writand!40
This commit is contained in:
Emma Vandewalle 2024-08-23 21:02:17 +00:00
commit e796e2dfc1
3 changed files with 0 additions and 4 deletions

View file

@ -10,8 +10,6 @@ import kotlinx.coroutines.flow.asStateFlow
* Viewmodel to be used by BottomEditorBar that handles the buttons and what the current
* row/column is.
*/
@HiltViewModel
class BottomEditorBarViewModel : WViewModel() {
private val _row = MutableStateFlow(0)

View file

@ -9,7 +9,6 @@ import javax.inject.Inject
/**
* Viewmodel to be used by EditorSpace to handle file changes and keep the ui state in memory.
*/
@HiltViewModel
class EditorSpaceViewModel : WViewModel() {
private val _uiState: MutableStateFlow<EditorSpaceUiState> =

View file

@ -9,7 +9,6 @@ import kotlinx.coroutines.flow.asStateFlow
/**
* View model to be used by TopEditorBar handling the buttons and saving of the file.
*/
@HiltViewModel
class TopEditorBarViewModel : WViewModel() {
private val _saved = MutableStateFlow(true)