Skip to content

Commit

Permalink
Merge pull request #298 from sanao1006/evetmap-text-uses-string-resource
Browse files Browse the repository at this point in the history
"EventMap" text uses string resource
  • Loading branch information
takahirom authored Aug 11, 2024
2 parents 62794ac + a596d58 commit 9b090cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="sample">!!Please remove this resource when you add string resource!!</string>
<string name="eventmap">イベントマップ</string>
</resources>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="sample">!!Please remove this resource when you add string resource!!</string>
<string name="eventmap">EventMap</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import androidx.navigation.NavGraph.Companion.findStartDestination
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import co.touchlab.kermit.Logger
import conference_app_2024.feature.eventmap.generated.resources.eventmap
import io.github.droidkaigi.confsched.compose.rememberEventEmitter
import io.github.droidkaigi.confsched.eventmap.component.EventMapItem
import io.github.droidkaigi.confsched.eventmap.component.EventMapTab
Expand All @@ -40,6 +41,7 @@ import io.github.droidkaigi.confsched.ui.handleOnClickIfNotNavigating
import io.github.droidkaigi.confsched.ui.rememberUserMessageStateHolder
import kotlinx.collections.immutable.PersistentList
import kotlinx.collections.immutable.persistentListOf
import org.jetbrains.compose.resources.stringResource
import org.jetbrains.compose.ui.tooling.preview.Preview

const val eventMapScreenRoute = "eventMap"
Expand Down Expand Up @@ -130,7 +132,7 @@ fun EventMapScreen(
if (scrollBehavior != null) {
LargeTopAppBar(
title = {
Text(text = "イベントマップ")
Text(text = stringResource(EventMapRes.string.eventmap))
},
navigationIcon = {
IconButton(
Expand Down

0 comments on commit 9b090cf

Please sign in to comment.