-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[ADD/#8] ๋ฐํ ๋ค๋น๊ฒ์ด์ ์ถ๊ฐ
- Loading branch information
Showing
20 changed files
with
233 additions
and
63 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
feature/src/main/java/com/terning/feature/calendar/CalendarRouth.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.terning.feature.calendar | ||
|
||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
|
||
@Composable | ||
fun CalendarRoute() { | ||
CalendarScreen() | ||
} | ||
|
||
@Composable | ||
fun CalendarScreen() { | ||
Column(modifier = Modifier.fillMaxSize()) { | ||
Text(text = "์บ๋ฆฐ๋ ์คํฌ๋ฆฐ") | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
feature/src/main/java/com/terning/feature/calendar/navigation/CalendarNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.terning.feature.calendar.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import com.terning.core.navigation.MainTabRoute | ||
import com.terning.feature.calendar.CalendarRoute | ||
import kotlinx.serialization.Serializable | ||
|
||
|
||
fun NavController.navigateCalendar(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = Calendar, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavGraphBuilder.calendarNavGraph() { | ||
composable<Calendar> { | ||
CalendarRoute() | ||
} | ||
} | ||
|
||
@Serializable | ||
data object Calendar : MainTabRoute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...feature/mock/navigation/MockNavigation.kt โ ...eature/home/navigation/HometNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package com.terning.feature.mock.navigation | ||
package com.terning.feature.home.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import com.terning.core.navigation.MainTabRoute | ||
import com.terning.feature.mock.MockRoute | ||
import com.terning.feature.home.HomeRoute | ||
import kotlinx.serialization.Serializable | ||
|
||
fun NavController.navigateMock(navOptions: NavOptions? = null) { | ||
fun NavController.navigateHome(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = Mock, | ||
route = Home, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavGraphBuilder.mockNavGraph() { | ||
composable<Mock> { | ||
MockRoute() | ||
fun NavGraphBuilder.homeNavGraph() { | ||
composable<Home> { | ||
HomeRoute() | ||
} | ||
} | ||
|
||
@Serializable | ||
data object Mock : MainTabRoute | ||
data object Home : MainTabRoute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...java/com/terning/feature/mock/MockItem.kt โ ...va/com/terning/feature/mypage/MockItem.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...om/terning/feature/mock/MockSideEffect.kt โ .../terning/feature/mypage/MockSideEffect.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.terning.feature.mock | ||
package com.terning.feature.mypage | ||
|
||
import androidx.annotation.StringRes | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ava/com/terning/feature/mock/MockState.kt โ ...a/com/terning/feature/mypage/MockState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...ature/first/navigation/FirstNavigation.kt โ ...ure/mypage/navigation/MyPageNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package com.terning.feature.first.navigation | ||
package com.terning.feature.mypage.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import com.terning.core.navigation.MainTabRoute | ||
import com.terning.feature.first.FirstRoute | ||
import com.terning.feature.mypage.MyPageRoute | ||
import kotlinx.serialization.Serializable | ||
|
||
fun NavController.navigateFirst(navOptions: NavOptions? = null) { | ||
fun NavController.navigateMyPage(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = First, | ||
route = MyPage, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavGraphBuilder.firstNavGraph() { | ||
composable<First> { | ||
FirstRoute() | ||
fun NavGraphBuilder.myPageNavGraph() { | ||
composable<MyPage> { | ||
MyPageRoute() | ||
} | ||
} | ||
|
||
@Serializable | ||
data object First : MainTabRoute | ||
data object MyPage : MainTabRoute |
Oops, something went wrong.