diff --git a/core/ui/src/commonMain/kotlin/io/github/droidkaigi/confsched/ui/component/TimetableItemCard.kt b/core/ui/src/commonMain/kotlin/io/github/droidkaigi/confsched/ui/component/TimetableItemCard.kt index 9972f424b..345f17abf 100644 --- a/core/ui/src/commonMain/kotlin/io/github/droidkaigi/confsched/ui/component/TimetableItemCard.kt +++ b/core/ui/src/commonMain/kotlin/io/github/droidkaigi/confsched/ui/component/TimetableItemCard.kt @@ -4,6 +4,7 @@ import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.Image import androidx.compose.foundation.border import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row @@ -15,6 +16,7 @@ import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Favorite +import androidx.compose.material.icons.filled.Info import androidx.compose.material.icons.outlined.FavoriteBorder import androidx.compose.material3.Icon import androidx.compose.material3.MaterialTheme @@ -33,6 +35,7 @@ import conference_app_2024.core.ui.generated.resources.image import conference_app_2024.core.ui.generated.resources.not_bookmarked import io.github.droidkaigi.confsched.designsystem.theme.ProvideRoomTheme import io.github.droidkaigi.confsched.model.TimetableItem +import io.github.droidkaigi.confsched.model.TimetableItem.Session import io.github.droidkaigi.confsched.ui.UiRes import io.github.droidkaigi.confsched.ui.rememberAsyncImagePainter import org.jetbrains.compose.resources.stringResource @@ -115,6 +118,24 @@ fun TimetableItemCard( // TODO: Message goes here (missing from object we can access here?) } } + if (timetableItem is Session) { + timetableItem.message?.let { + Row( + horizontalArrangement = Arrangement.spacedBy(12.dp), + ) { + Icon( + Icons.Filled.Info, + contentDescription = stringResource(UiRes.string.image), + tint = MaterialTheme.colorScheme.error, + ) + Text( + text = it.currentLangTitle, + fontSize = 16.sp, + color = MaterialTheme.colorScheme.error, + ) + } + } + } } // TODO: There is no data for the warning string right now. (Should go here) }