Skip to content

Commit

Permalink
[chore] #234 앰플리튜드 스트링 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
t1nm1ksun committed Sep 17, 2024
1 parent 6d7dab9 commit 0ec8898
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ import org.sopt.dateroad.presentation.util.HomeAmplitude.COURSE_LIST_COST
import org.sopt.dateroad.presentation.util.HomeAmplitude.COURSE_LIST_ID
import org.sopt.dateroad.presentation.util.HomeAmplitude.COURSE_LIST_LOCATION
import org.sopt.dateroad.presentation.util.HomeAmplitude.COURSE_LIST_TITLE
import org.sopt.dateroad.presentation.util.HomeAmplitude.HOT
import org.sopt.dateroad.presentation.util.HomeAmplitude.NEW
import org.sopt.dateroad.presentation.util.HomeAmplitude.USER_NAME
import org.sopt.dateroad.presentation.util.HomeAmplitude.USER_POINT
import org.sopt.dateroad.presentation.util.HomeAmplitude.VIEW_MAIN
Expand Down Expand Up @@ -123,13 +125,13 @@ fun HomeRoute(
USER_NAME to uiState.userPoint.name,
USER_POINT to uiState.userPoint.point,
COURSE_LIST_ID to
"Hot: " + uiState.topLikedCourses.map { it.courseId }.joinToString() + " / New: " + uiState.latestCourses.map { it.courseId }.joinToString(),
HOT + uiState.topLikedCourses.map { it.courseId }.joinToString() + NEW + uiState.latestCourses.map { it.courseId }.joinToString(),
COURSE_LIST_TITLE to
"Hot: " + uiState.topLikedCourses.joinToString { it.title } + " / New: " + uiState.latestCourses.joinToString { it.title },
HOT + uiState.topLikedCourses.joinToString { it.title } + NEW + uiState.latestCourses.joinToString { it.title },
COURSE_LIST_LOCATION to
"Hot: " + uiState.topLikedCourses.joinToString { it.city } + " / New: " + uiState.latestCourses.joinToString { it.city },
HOT + uiState.topLikedCourses.joinToString { it.city } + NEW + uiState.latestCourses.joinToString { it.city },
COURSE_LIST_COST to
"Hot: " + uiState.topLikedCourses.joinToString { it.cost } + " / New: " + uiState.latestCourses.joinToString { it.cost }
HOT + uiState.topLikedCourses.joinToString { it.cost } + NEW + uiState.latestCourses.joinToString { it.cost }
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@ object HomeAmplitude {
const val COURSE_LIST_TITLE = "course_list_title"
const val COURSE_LIST_LOCATION = "course_list_location"
const val COURSE_LIST_COST = "course_list_cost"
const val HOT = "Hot: "
const val NEW = " / New: "
}

0 comments on commit 0ec8898

Please sign in to comment.