@@ -18,7 +18,9 @@ import androidx.compose.runtime.remember
1818import androidx.compose.ui.Alignment.Companion.CenterHorizontally
1919import androidx.compose.ui.Alignment.Companion.CenterVertically
2020import androidx.compose.ui.Modifier
21+ import androidx.compose.ui.res.stringResource
2122import androidx.compose.ui.text.style.TextAlign
23+ import com.getcode.R
2224import com.getcode.navigation.core.LocalCodeNavigator
2325import com.getcode.navigation.screens.ChatByUsernameScreen
2426import com.getcode.navigation.screens.ConversationScreen
@@ -45,9 +47,11 @@ fun ChatListScreen(
4547 bottomBar = {
4648 Box (modifier = Modifier .fillMaxWidth()) {
4749 CodeButton (
48- modifier = Modifier .fillMaxWidth().padding(horizontal = CodeTheme .dimens.inset),
50+ modifier = Modifier
51+ .fillMaxWidth()
52+ .padding(horizontal = CodeTheme .dimens.inset),
4953 buttonState = ButtonState .Filled ,
50- text = " Start a New Chat "
54+ text = stringResource( R .string.action_startNewChat)
5155 ) {
5256 navigator.push(ChatByUsernameScreen )
5357 }
@@ -79,7 +83,7 @@ fun ChatListScreen(
7983 CodeCircularProgressIndicator ()
8084 Text (
8185 modifier = Modifier .fillMaxWidth(0.6f ),
82- text = " Loading your chats " ,
86+ text = stringResource( R .string.subtitle_loadingChats) ,
8387 textAlign = TextAlign .Center
8488 )
8589 }
@@ -97,7 +101,7 @@ fun ChatListScreen(
97101 ) {
98102 Text (
99103 modifier = Modifier .padding(vertical = CodeTheme .dimens.grid.x1),
100- text = " You don't have any chats yet. " ,
104+ text = stringResource( R .string.subtitle_dontHaveChats) ,
101105 color = CodeTheme .colors.textSecondary,
102106 style = CodeTheme .typography.textMedium
103107 )
0 commit comments