Skip to content

Commit 45d8a0c

Browse files
committed
[feat] #208: 기본 이미지로 수정 추가해요
1 parent 9bebc7b commit 45d8a0c

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed
Loading

feature/entire/src/main/java/com/bff/wespot/entire/screen/edit/ProfileEditScreen.kt

+10-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import androidx.compose.ui.platform.LocalFocusManager
4141
import androidx.compose.ui.platform.LocalView
4242
import androidx.compose.ui.res.painterResource
4343
import androidx.compose.ui.res.stringResource
44+
import androidx.compose.ui.text.style.TextAlign
4445
import androidx.compose.ui.unit.dp
4546
import androidx.compose.ui.zIndex
4647
import androidx.core.view.ViewCompat
@@ -152,6 +153,9 @@ fun ProfileEditScreen(
152153
.clip(CircleShape),
153154
model = ImageRequest.Builder(LocalContext.current)
154155
.data(state.profilePath)
156+
.error(com.bff.wespot.designsystem.R.drawable.default_image)
157+
.fallback(com.bff.wespot.designsystem.R.drawable.default_image)
158+
.placeholder(com.bff.wespot.designsystem.R.drawable.default_image)
155159
.crossfade(true)
156160
.build(),
157161
contentDescription = stringResource(
@@ -309,7 +313,9 @@ fun ProfileEditScreen(
309313
),
310314
)
311315
action(EntireEditAction.ChangeBottomSheetState(false))
312-
}
316+
},
317+
textAlign = TextAlign.Center,
318+
style = StaticTypeScale.Default.body3,
313319
)
314320
HorizontalDivider(
315321
color = Color(0xFF4F5157),
@@ -321,7 +327,9 @@ fun ProfileEditScreen(
321327
.clickableSingle {
322328
action(EntireEditAction.OnProfileImagePicked(null))
323329
action(EntireEditAction.ChangeBottomSheetState(false))
324-
}
330+
},
331+
textAlign = TextAlign.Center,
332+
style = StaticTypeScale.Default.body3,
325333
)
326334
}
327335
}

feature/entire/src/main/res/values/strings.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@
6565
<string name="blocked_message_load_error_message">차단된 메세지를 불러오는데 실패했어요.</string>
6666
<string name="introduction_placeholder">(ex. 귀염둥이 엥뿌삐 ENFP)</string>
6767
<string name="request">신청</string>
68-
<string name="change_image">이미지 변경</string>
69-
<string name="remove_image">이미지 지우기</string>
68+
<string name="change_image">앨범에서 사진 선택</string>
69+
<string name="remove_image">기본 이미지 적용</string>
7070
</resources>

0 commit comments

Comments
 (0)