1- package `in`.koreatech.koin.feature.home. profile
1+ package `in`.koreatech.koin.feature.profile
22
33import androidx.compose.foundation.Image
44import androidx.compose.foundation.background
55import androidx.compose.foundation.border
6+ import androidx.compose.foundation.layout.Arrangement
67import androidx.compose.foundation.layout.Column
78import androidx.compose.foundation.layout.Row
89import androidx.compose.foundation.layout.Spacer
@@ -34,11 +35,9 @@ import `in`.koreatech.koin.core.analytics.EventLogger
3435import `in`.koreatech.koin.core.designsystem.noRippleClickable
3536import `in`.koreatech.koin.core.designsystem.theme.RebrandKoinTheme
3637import `in`.koreatech.koin.core.navigation.utils.rememberNavigator
37- import `in`.koreatech.koin.feature.home.R
38- import `in`.koreatech.koin.feature.home.component.HomeSection
39- import `in`.koreatech.koin.feature.home.profile.component.ProfileCard
40- import `in`.koreatech.koin.feature.home.profile.component.ProfileTimetable
41- import `in`.koreatech.koin.feature.home.profile.model.ProfileTimetableLecture
38+ import `in`.koreatech.koin.feature.profile.component.ProfileCard
39+ import `in`.koreatech.koin.feature.profile.component.ProfileTimetable
40+ import `in`.koreatech.koin.feature.profile.model.ProfileTimetableLecture
4241import kotlinx.collections.immutable.ImmutableList
4342import org.orbitmvi.orbit.compose.collectAsState
4443import org.orbitmvi.orbit.compose.collectSideEffect
@@ -79,10 +78,12 @@ fun ProfileScreen(
7978 }
8079 },
8180 onSettingClick = {
82- if (! uiState.isLoggedIn) {
81+ if (uiState.isLoggedIn) {
82+ onNavigateToSetting()
83+ } else {
8384 EventLogger .logCampusClickEvent(AnalyticsConstant .Label .LOGIN_PROMPT , " 설정(비로그인)" )
85+ navigator.navigateToSignIn(context, DEEPLINK_MAIN_PROFILE ).let { context.startActivity(it) }
8486 }
85- onNavigateToSetting()
8687 },
8788 onNotificationClick = {
8889 EventLogger .logCampusClickEvent(AnalyticsConstant .Label .NOTIFICATION , " 알림 아이콘" )
@@ -137,17 +138,22 @@ private fun HeaderSection(
137138 ) {
138139 Image (
139140 imageVector = ImageVector .vectorResource(R .drawable.ic_bcsd_symbol),
140- contentDescription = " "
141+ contentDescription = null
142+ )
143+
144+ Image (
145+ imageVector = ImageVector .vectorResource(R .drawable.ic_koin_text),
146+ contentDescription = null
141147 )
142148
143149 Spacer (modifier = Modifier .weight(1f ))
144150
145151 Image (
146152 modifier = Modifier .noRippleClickable { onNotificationClick() },
147153 imageVector = if (isNewNotificationReceived) {
148- ImageVector .vectorResource(R .drawable.ic_home_notification_dot )
154+ ImageVector .vectorResource(R .drawable.ic_profile_notification_dot )
149155 } else {
150- ImageVector .vectorResource(R .drawable.ic_home_notification )
156+ ImageVector .vectorResource(R .drawable.ic_profile_notification )
151157 },
152158 contentDescription = null
153159 )
@@ -159,23 +165,23 @@ private fun TimetableSection(
159165 lectures : ImmutableList <ProfileTimetableLecture >,
160166 modifier : Modifier = Modifier
161167) {
162- HomeSection (
163- modifier = modifier.fillMaxWidth(),
164- text = {
165- Text (
166- text = stringResource(R .string.profile_timetable_section),
167- style = RebrandKoinTheme .typography.medium18
168- )
169- },
170- more = {}
168+ Column (
169+ modifier = modifier
170+ .fillMaxWidth()
171+ .padding(top = 16 .dp, start = 24 .dp, end = 24 .dp),
172+ verticalArrangement = Arrangement .spacedBy(12 .dp)
171173 ) {
174+ Text (
175+ text = stringResource(R .string.profile_timetable_section),
176+ style = RebrandKoinTheme .typography.bold18
177+ )
172178 Column (
173179 modifier = Modifier
174180 .fillMaxWidth()
175181 .border(0.5 .dp, Color (0xFFE6E6E6 ), RoundedCornerShape (16 .dp))
176182 .clip(RoundedCornerShape (16 .dp))
177183 .background(RebrandKoinTheme .colors.neutral0)
178- .padding(vertical = 16 .dp, horizontal = 16 .dp)
184+ .padding(16 .dp)
179185 ) {
180186 ProfileTimetable (lectures = lectures)
181187 }
0 commit comments