Skip to content

Commit 198f78c

Browse files
committed
[refactor]: SavedScreen UI 간단한 수정(#26)
1 parent 1e3a2b1 commit 198f78c

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

app/src/main/java/com/texthip/thip/ui/myPage/SavedScreen.kt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import androidx.compose.ui.draw.clip
2828
import androidx.compose.ui.graphics.Color
2929
import androidx.compose.ui.res.painterResource
3030
import androidx.compose.ui.res.stringResource
31+
import androidx.compose.ui.text.style.TextAlign
3132
import androidx.compose.ui.tooling.preview.Preview
3233
import androidx.compose.ui.unit.dp
3334
import androidx.lifecycle.viewmodel.compose.viewModel
@@ -45,7 +46,7 @@ import com.texthip.thip.ui.theme.White
4546

4647
@Composable
4748
fun SavedScreen() {
48-
val tabs = listOf("피드", "")
49+
val tabs = listOf(stringResource(R.string.feed), stringResource(R.string.book))
4950
var selectedTabIndex by rememberSaveable { mutableStateOf(0) }
5051

5152
Scaffold(
@@ -91,14 +92,11 @@ fun SavedScreen() {
9192
selectedContentColor = colors.White,
9293
unselectedContentColor = colors.Grey02,
9394
text = {
94-
Box(
95-
contentAlignment = Alignment.Center
96-
) {
97-
Text(
98-
text = title,
99-
style = typography.smalltitle_sb600_s18_h24
100-
)
101-
}
95+
Text(
96+
textAlign = TextAlign.Center,
97+
text = title,
98+
style = typography.smalltitle_sb600_s18_h24
99+
)
102100
}
103101
)
104102
}

0 commit comments

Comments
 (0)