Skip to content

Commit

Permalink
refactor: grouplist 화면 preview(#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheonilyeong committed Jan 10, 2025
1 parent 8563c88 commit 0e0d1c3
Showing 1 changed file with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.AddCircle
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import kr.boostcamp_2024.course.domain.model.StudyGroup
import kr.boostcamp_2024.course.domain.model.User
Expand Down Expand Up @@ -92,3 +94,55 @@ fun GroupLazyColumn(
}
}
}

@Preview(showBackground = true, locale = "ko")
@Composable
fun GroupListScreenPreview() {
MaterialTheme {
GroupListScreen(
currentGroup = StudyGroup(
id = "study1",
name = "study1",
description = "description",
maxUserNum = 12,
studyGroupImageUrl = "",
ownerId = "",
users = emptyList(),
categories = emptyList(),
),
owner = User(
id = "user1",
name = "user1",
email = "email1",
profileUrl = "",
studyGroups = emptyList(),
),
curUserId = "user1",
users = listOf(
User(
id = "user1",
name = "user1",
email = "email1",
profileUrl = "",
studyGroups = emptyList(),
),
User(
id = "user2",
name = "user2",
email = "email2",
profileUrl = "",
studyGroups = emptyList(),
),
User(
id = "user3",
name = "user3",
email = "email3",
profileUrl = "",
studyGroups = emptyList(),
),
),
inviteClick = { _, _ -> },
removeClick = { _, _ -> },
)
}
}

0 comments on commit 0e0d1c3

Please sign in to comment.