Skip to content

Commit c20cee8

Browse files
authored
[CLX-3244][Horizon] Replace deprecated hiltViewModel calls (#3402)
refs: CLX-3244 affects: Student release note: none
1 parent 60eb51d commit c20cee8

File tree

27 files changed

+27
-30
lines changed

27 files changed

+27
-30
lines changed

libs/horizon/src/main/java/com/instructure/horizon/features/account/navigation/AccountNavigation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package com.instructure.horizon.features.account.navigation
1919
import androidx.compose.animation.AnimatedContentTransitionScope
2020
import androidx.compose.runtime.collectAsState
2121
import androidx.compose.runtime.getValue
22-
import androidx.hilt.navigation.compose.hiltViewModel
22+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
2323
import androidx.navigation.NavBackStackEntry
2424
import androidx.navigation.NavGraphBuilder
2525
import androidx.navigation.NavHostController

libs/horizon/src/main/java/com/instructure/horizon/features/aiassistant/navigation/AiAssistNavigation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import androidx.compose.runtime.Composable
2222
import androidx.compose.runtime.collectAsState
2323
import androidx.compose.runtime.getValue
2424
import androidx.compose.ui.Modifier
25-
import androidx.hilt.navigation.compose.hiltViewModel
25+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
2626
import androidx.navigation.NavHostController
2727
import androidx.navigation.compose.NavHost
2828
import androidx.navigation.compose.composable

libs/horizon/src/main/java/com/instructure/horizon/features/dashboard/widget/announcement/DashboardAnnouncementBannerWidget.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import androidx.compose.runtime.LaunchedEffect
2121
import androidx.compose.runtime.collectAsState
2222
import androidx.compose.runtime.getValue
2323
import androidx.compose.ui.res.stringResource
24-
import androidx.hilt.navigation.compose.hiltViewModel
24+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
2525
import androidx.navigation.NavHostController
2626
import com.instructure.horizon.R
2727
import com.instructure.horizon.features.dashboard.DashboardItemState

libs/horizon/src/main/java/com/instructure/horizon/features/dashboard/widget/course/DashboardCourseSection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import androidx.compose.ui.Modifier
3636
import androidx.compose.ui.layout.onGloballyPositioned
3737
import androidx.compose.ui.res.stringResource
3838
import androidx.compose.ui.unit.dp
39-
import androidx.hilt.navigation.compose.hiltViewModel
39+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
4040
import androidx.navigation.NavGraph.Companion.findStartDestination
4141
import androidx.navigation.NavHostController
4242
import com.instructure.horizon.R

libs/horizon/src/main/java/com/instructure/horizon/features/dashboard/widget/myprogress/DashboardMyProgressWidget.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import androidx.compose.runtime.collectAsState
2222
import androidx.compose.runtime.getValue
2323
import androidx.compose.ui.Modifier
2424
import androidx.compose.ui.res.stringResource
25-
import androidx.hilt.navigation.compose.hiltViewModel
25+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
2626
import com.instructure.horizon.R
2727
import com.instructure.horizon.features.dashboard.DashboardItemState
2828
import com.instructure.horizon.features.dashboard.widget.DashboardWidgetCardError

libs/horizon/src/main/java/com/instructure/horizon/features/dashboard/widget/skillhighlights/DashboardSkillHighlightsWidget.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import androidx.compose.runtime.getValue
2424
import androidx.compose.ui.Modifier
2525
import androidx.compose.ui.res.stringResource
2626
import androidx.compose.ui.unit.dp
27-
import androidx.hilt.navigation.compose.hiltViewModel
27+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
2828
import androidx.navigation.NavHostController
2929
import com.instructure.horizon.R
3030
import com.instructure.horizon.features.dashboard.DashboardItemState

libs/horizon/src/main/java/com/instructure/horizon/features/dashboard/widget/skilloverview/DashboardSkillOverviewWidget.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@
1616
*/
1717
package com.instructure.horizon.features.dashboard.widget.skilloverview
1818

19-
import androidx.compose.foundation.layout.fillMaxWidth
2019
import androidx.compose.runtime.Composable
2120
import androidx.compose.runtime.LaunchedEffect
2221
import androidx.compose.runtime.collectAsState
2322
import androidx.compose.runtime.getValue
2423
import androidx.compose.ui.Modifier
2524
import androidx.compose.ui.res.stringResource
26-
import androidx.hilt.navigation.compose.hiltViewModel
25+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
2726
import androidx.navigation.NavHostController
2827
import com.instructure.horizon.R
2928
import com.instructure.horizon.features.dashboard.DashboardItemState

libs/horizon/src/main/java/com/instructure/horizon/features/dashboard/widget/timespent/DashboardTimeSpentWidget.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import androidx.compose.runtime.collectAsState
2222
import androidx.compose.runtime.getValue
2323
import androidx.compose.ui.Modifier
2424
import androidx.compose.ui.res.stringResource
25-
import androidx.hilt.navigation.compose.hiltViewModel
25+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
2626
import com.instructure.horizon.R
2727
import com.instructure.horizon.features.dashboard.DashboardItemState
2828
import com.instructure.horizon.features.dashboard.widget.DashboardWidgetCardError

libs/horizon/src/main/java/com/instructure/horizon/features/home/HomeNavigation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import androidx.compose.runtime.Composable
1919
import androidx.compose.runtime.collectAsState
2020
import androidx.compose.runtime.getValue
2121
import androidx.compose.ui.Modifier
22-
import androidx.hilt.navigation.compose.hiltViewModel
22+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
2323
import androidx.navigation.NavHostController
2424
import androidx.navigation.NavType
2525
import androidx.navigation.compose.NavHost

libs/horizon/src/main/java/com/instructure/horizon/features/inbox/details/HorizonInboxDetailsScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import androidx.compose.ui.res.stringResource
5353
import androidx.compose.ui.text.input.TextFieldValue
5454
import androidx.compose.ui.tooling.preview.Preview
5555
import androidx.compose.ui.unit.dp
56-
import androidx.hilt.navigation.compose.hiltViewModel
56+
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
5757
import androidx.navigation.NavHostController
5858
import androidx.navigation.compose.rememberNavController
5959
import com.instructure.canvasapi2.utils.ContextKeeper

0 commit comments

Comments
 (0)