Skip to content

Commit a3f8cdc

Browse files
[FEAT#1592] 플레이그라운드 커뮤니티 URL 추가 (#1593)
1 parent 8325cff commit a3f8cdc

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

feature/home/src/main/java/org/sopt/official/feature/home/HomeRoute.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

feature/home/src/main/java/org/sopt/official/feature/home/component/HomePopularNewsSection.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

feature/home/src/main/java/org/sopt/official/feature/home/navigation/HomeNavigation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

feature/main/src/main/java/org/sopt/official/feature/main/MainScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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))

feature/main/src/main/java/org/sopt/official/feature/main/model/WebLink.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ internal object SoptWebLink {
3535

3636
internal 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"

0 commit comments

Comments
 (0)