forked from Writand/writand
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:
commit
e796e2dfc1
3 changed files with 0 additions and 4 deletions
|
@ -10,8 +10,6 @@ import kotlinx.coroutines.flow.asStateFlow
|
||||||
* Viewmodel to be used by BottomEditorBar that handles the buttons and what the current
|
* Viewmodel to be used by BottomEditorBar that handles the buttons and what the current
|
||||||
* row/column is.
|
* row/column is.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@HiltViewModel
|
|
||||||
class BottomEditorBarViewModel : WViewModel() {
|
class BottomEditorBarViewModel : WViewModel() {
|
||||||
|
|
||||||
private val _row = MutableStateFlow(0)
|
private val _row = MutableStateFlow(0)
|
||||||
|
|
|
@ -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.
|
* Viewmodel to be used by EditorSpace to handle file changes and keep the ui state in memory.
|
||||||
*/
|
*/
|
||||||
@HiltViewModel
|
|
||||||
class EditorSpaceViewModel : WViewModel() {
|
class EditorSpaceViewModel : WViewModel() {
|
||||||
|
|
||||||
private val _uiState: MutableStateFlow<EditorSpaceUiState> =
|
private val _uiState: MutableStateFlow<EditorSpaceUiState> =
|
||||||
|
|
|
@ -9,7 +9,6 @@ import kotlinx.coroutines.flow.asStateFlow
|
||||||
/**
|
/**
|
||||||
* View model to be used by TopEditorBar handling the buttons and saving of the file.
|
* View model to be used by TopEditorBar handling the buttons and saving of the file.
|
||||||
*/
|
*/
|
||||||
@HiltViewModel
|
|
||||||
class TopEditorBarViewModel : WViewModel() {
|
class TopEditorBarViewModel : WViewModel() {
|
||||||
|
|
||||||
private val _saved = MutableStateFlow(true)
|
private val _saved = MutableStateFlow(true)
|
||||||
|
|
Loading…
Reference in a new issue