Skip to content

Commit

Permalink
[fix/#841] delete StringResources
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Sep 25, 2024
1 parent 614f92a commit 38dbedb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import org.sopt.official.designsystem.Gray900
import org.sopt.official.designsystem.SoptTheme
import org.sopt.official.feature.mypage.model.MyPageUiModel
import kotlinx.collections.immutable.ImmutableList

@Composable
fun MyPageSection(items: ImmutableList<MyPageUiModel>) {
Column(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
package org.sopt.official.feature.mypage.component

import androidx.annotation.StringRes
import androidx.compose.material3.CenterAlignedTopAppBar
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
Expand All @@ -34,22 +33,21 @@ import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import org.sopt.official.designsystem.SoptTheme
import org.sopt.official.feature.mypage.R

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun MyPageTopBar(
@StringRes title: Int,
title: String,
onNavigationIconClick: () -> Unit,
modifier: Modifier = Modifier
) {
CenterAlignedTopAppBar(
modifier = modifier,
title = {
Text(
text = stringResource(id = title),
text = title,
style = SoptTheme.typography.body16M
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class MyPageActivity : AppCompatActivity() {
.fillMaxSize(),
topBar = {
MyPageTopBar(
title = R.string.toolbar_mypage,
title = "마이페이지",
onNavigationIconClick = { onBackPressedDispatcher.onBackPressed() }
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SignOutActivity : AppCompatActivity() {
.fillMaxSize(),
topBar = {
MyPageTopBar(
title = R.string.toolbar_sign_out,
title = "마이페이지",
onNavigationIconClick = { onBackPressedDispatcher.onBackPressed() }
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class AdjustSentenceActivity : AppCompatActivity() {
.fillMaxSize(),
topBar = {
MyPageTopBar(
title = R.string.toolbar_adjust_sentence,
title = "한 마디 편집",
onNavigationIconClick = { onBackPressedDispatcher.onBackPressed() }
)
}
Expand Down
2 changes: 0 additions & 2 deletions feature/mypage/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
-->
<resources>
<!-- mypage -->
<string name="toolbar_mypage">마이페이지</string>
<string name="mypage_change_nickname">닉네임 변경</string>
<string name="mypage_alert_soptamp_reset_title">미션을 초기화 하실건가요?</string>
<string name="mypage_alert_soptamp_reset_subtitle">사진, 메모가 삭제되고\n전체 미션이 미완료상태로 초기화됩니다.</string>
Expand All @@ -48,7 +47,6 @@
<string name="change_nickname_button">닉네임 변경</string>

<!-- 한 마디 편집하기 -->
<string name="toolbar_adjust_sentence">한 마디 편집</string>
<string name="adjust_sentence_button">저장</string>
<string name="adjust_sentence_hint">설정된 한 마디가 없습니다.</string>
</resources>

0 comments on commit 38dbedb

Please sign in to comment.