@@ -41,17 +41,15 @@ import androidx.compose.ui.graphics.Color
41
41
import androidx.compose.ui.graphics.ColorFilter
42
42
import androidx.compose.ui.graphics.vector.ImageVector
43
43
import androidx.compose.ui.layout.ContentScale
44
- import androidx.compose.ui.res.painterResource
45
44
import androidx.compose.ui.res.stringResource
46
45
import androidx.compose.ui.res.vectorResource
47
46
import androidx.compose.ui.text.font.FontWeight
48
47
import androidx.compose.ui.tooling.preview.Preview
49
48
import androidx.compose.ui.unit.dp
50
49
import androidx.compose.ui.unit.sp
51
50
import androidx.hilt.navigation.compose.hiltViewModel
52
- import com.everymeal.domain.model.restaurant.Restaurant
51
+ import com.everymeal.domain.model.restaurant.RestaurantDataEntity
53
52
import coil.compose.AsyncImage
54
- import coil.compose.rememberImagePainter
55
53
import com.everymeal.presentation.R
56
54
import com.everymeal.presentation.base.LoadState
57
55
import com.everymeal.presentation.components.EveryMealDialog
@@ -252,7 +250,7 @@ fun DetailRestaurantScreen(
252
250
@OptIn(ExperimentalFoundationApi ::class )
253
251
@Composable
254
252
fun DetailRestaurantImage (
255
- restaurantInfo : Restaurant
253
+ restaurantInfo : RestaurantDataEntity
256
254
) {
257
255
val images = restaurantInfo.images ? : listOf ()
258
256
@@ -296,7 +294,7 @@ fun DetailRestaurantImage(
296
294
297
295
@Composable
298
296
fun DetailRestaurantMainInfo (
299
- restaurantInfo : Restaurant
297
+ restaurantInfo : RestaurantDataEntity
300
298
) {
301
299
Column (
302
300
modifier = Modifier
@@ -409,7 +407,7 @@ fun DetailRestaurantMainInfo(
409
407
@OptIn(ExperimentalFoundationApi ::class )
410
408
@Composable
411
409
fun DetailRestaurantTabLayout (
412
- restaurantInfo : Restaurant ,
410
+ restaurantInfo : RestaurantDataEntity ,
413
411
viewModel : DetailRestaurantViewModel
414
412
) {
415
413
val viewState by viewModel.viewState.collectAsState()
@@ -476,7 +474,7 @@ fun DetailRestaurantTabLayout(
476
474
477
475
@Composable
478
476
fun DetailRestaurantTabInfo (
479
- restaurantInfo : Restaurant ,
477
+ restaurantInfo : RestaurantDataEntity ,
480
478
modifier : Modifier = Modifier ,
481
479
) {
482
480
Column (
@@ -538,7 +536,7 @@ fun DetailRestaurantTabInfo(
538
536
539
537
@Composable
540
538
fun DetailRestaurantTabImage (
541
- restaurantInfo : Restaurant
539
+ restaurantInfo : RestaurantDataEntity
542
540
) {
543
541
Column {
544
542
restaurantInfo.images?.let { images ->
0 commit comments