Skip to content

Commit 9141412

Browse files
committed
compose lint 수정
1 parent 02551cf commit 9141412

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

core/navigator/src/main/java/team/noweekend/core/navigator/model/DestinationRoute.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package team.noweekend.core.navigator.model
22

3-
import kotlinx.serialization.InternalSerializationApi
43
import kotlinx.serialization.Serializable
54
import javax.annotation.concurrent.Immutable
65

@@ -12,13 +11,9 @@ sealed interface DestinationRoute
1211
@Serializable
1312
data object Home : DestinationRoute
1413

15-
@InternalSerializationApi
1614
@Serializable
17-
data class Calendar(
18-
val date: String = "",
19-
) : DestinationRoute
15+
data object Calendar : DestinationRoute
2016

21-
@InternalSerializationApi
2217
@Immutable
2318
@Serializable
2419
data class DetailDate(

feature/calendar/src/main/kotlin/team/noweekend/feature/calendar/navigation/CalendarNavigation.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ package team.noweekend.feature.calendar.navigation
22

33
import androidx.navigation.NavGraphBuilder
44
import androidx.navigation.compose.composable
5-
import kotlinx.serialization.InternalSerializationApi
65
import team.noweekend.core.common.ui.todo.model.Todo
76
import team.noweekend.core.navigator.model.Calendar
87
import team.noweekend.feature.calendar.screen.CalendarRoute
98

10-
@OptIn(InternalSerializationApi::class)
119
fun NavGraphBuilder.calendarNavGraph(
1210
navigateToDetailDate: (String) -> Unit,
1311
navigateToAddTodo: (Todo) -> Unit,

feature/main/src/main/kotlin/team/noweekend/feature/main/MainNavHost.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal fun MainNavHost(
3333
homeNavGraph(
3434
navigateToCreateVacation = navigateToCreateVacation,
3535
navigateToCalendar = { date ->
36-
navigator.navController.navigate(Calendar(date))
36+
navigator.navController.navigate(Calendar)
3737
},
3838
)
3939
calendarNavGraph(

feature/main/src/main/kotlin/team/noweekend/feature/main/MainTab.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal enum class MainTab(
2929
labelId = NWKStringResource.LabelCalendar,
3030
selectedIconResId = NWKDrawableResource.CalendarOn,
3131
unselectedIconResId = NWKDrawableResource.CalendarOff,
32-
route = Calendar(),
32+
route = Calendar,
3333
),
3434
PROFILE(
3535
labelId = NWKStringResource.LabelProfile,

feature/main/src/main/kotlin/team/noweekend/feature/main/navigation/MainNavigator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ internal class MainNavigator(
4343
@Composable
4444
get() = navController.currentBackStackEntryAsState().value?.destination
4545

46-
@OptIn(InternalSerializationApi::class)
46+
@Suppress("WrongNavigateRouteType")
4747
fun navigate(tab: MainTab) {
4848
val navOptions = navOptions {
4949
popUpTo(navController.graph.findStartDestination().id) {

0 commit comments

Comments
 (0)