File tree Expand file tree Collapse file tree
home/src/main/java/org/sopt/official/feature/home
main/src/main/java/org/sopt/official/feature/main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ private fun HomeScreenForMember(
329329 postList = popularPosts,
330330 navigateToWebLink = homeAppServicesNavigation::navigateToWebUrl,
331331 navigateToMemberProfile = homeAppServicesNavigation::navigateToPlaygroundMemberProfile,
332- navigateToPlayground = homeShortcutNavigation::navigateToPlayground ,
332+ navigateToPlaygroundCommunity = homeShortcutNavigation::navigateToPlaygroundCommunity ,
333333 modifier = Modifier .padding(horizontal = 20 .dp)
334334 )
335335 }
@@ -339,7 +339,7 @@ private fun HomeScreenForMember(
339339
340340 HomeLatestNewsSection (
341341 feedList = latestPosts,
342- navigateToPlayground = homeShortcutNavigation::navigateToPlayground ,
342+ navigateToPlayground = homeShortcutNavigation::navigateToPlaygroundCommunity ,
343343 navigateToWebLink = homeAppServicesNavigation::navigateToWebUrl,
344344 navigateToMemberProfile = homeAppServicesNavigation::navigateToPlaygroundMemberProfile
345345 )
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ internal fun HomePopularNewsSection(
7070 postList : ImmutableList <HomePlaygroundPostModel >,
7171 navigateToWebLink : (String ) -> Unit ,
7272 navigateToMemberProfile : (Int ) -> Unit ,
73- navigateToPlayground : () -> Unit ,
73+ navigateToPlaygroundCommunity : () -> Unit ,
7474 modifier : Modifier = Modifier
7575) {
7676 var highlightedIndex by remember { mutableIntStateOf(0 ) }
@@ -106,7 +106,7 @@ internal fun HomePopularNewsSection(
106106 Row (
107107 verticalAlignment = Alignment .CenterVertically ,
108108 modifier = Modifier .noRippleClickable {
109- navigateToPlayground ()
109+ navigateToPlaygroundCommunity ()
110110 }
111111 ) {
112112 Text (
@@ -194,7 +194,7 @@ private fun HomePlaygroundSectionPreview() {
194194 ),
195195 navigateToWebLink = {},
196196 navigateToMemberProfile = {},
197- navigateToPlayground = {}
197+ navigateToPlaygroundCommunity = {}
198198 )
199199 }
200200}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ sealed interface HomeNavigation {
3131
3232 @Stable
3333 interface HomeShortcutNavigation : HomeNavigation {
34- fun navigateToPlayground ()
34+ fun navigateToPlaygroundCommunity ()
3535 fun navigateToPlaygroundGroup ()
3636 fun navigateToPlaygroundMember ()
3737 fun navigateToPlaygroundProject ()
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ fun MainScreen(
253253 putExtra(INTENT_URL , url)
254254 }
255255
256- override fun navigateToPlayground () = context.startActivity(getIntent(PlaygroundWebLink .OFFICIAL_HOMEPAGE ))
256+ override fun navigateToPlaygroundCommunity () = context.startActivity(getIntent(PlaygroundWebLink .COMMUNITY ))
257257 override fun navigateToPlaygroundGroup () = context.startActivity(getIntent(PlaygroundWebLink .GROUP_STUDY ))
258258 override fun navigateToPlaygroundMember () = context.startActivity(getIntent(PlaygroundWebLink .MEMBER ))
259259 override fun navigateToPlaygroundProject () = context.startActivity(getIntent(PlaygroundWebLink .PROJECT ))
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ internal object SoptWebLink {
3535
3636internal object PlaygroundWebLink {
3737 const val OFFICIAL_HOMEPAGE = BuildConfig .PLAYGROUND_API
38+ const val COMMUNITY = OFFICIAL_HOMEPAGE + " feed"
3839 const val MEMBER = OFFICIAL_HOMEPAGE + " members"
3940 const val EDIT_PROFILE = OFFICIAL_HOMEPAGE + " members/edit"
4041 const val PROJECT = OFFICIAL_HOMEPAGE + " projects"
You can’t perform that action at this time.
0 commit comments