Skip to content

Commit

Permalink
Rename SmallFileTile into SmallFileItem
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Oct 18, 2024
1 parent 7674992 commit 8262a8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import com.infomaniak.swisstransfer.ui.theme.CustomShapes
import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme

@Composable
fun SmallFileTile(
fun SmallFileItem(
modifier: Modifier = Modifier,
file: FileUiItem,
smallFileTileSize: SmallFileTileSize,
Expand Down Expand Up @@ -65,11 +65,11 @@ enum class SmallFileTileSize(val size: Dp, val shape: Shape) {
@Preview(name = "Light")
@Preview(name = "Dark", uiMode = Configuration.UI_MODE_NIGHT_YES or Configuration.UI_MODE_TYPE_NORMAL)
@Composable
private fun SmallFileTilePreview() {
private fun SmallFileItemPreview() {
SwissTransferTheme {
Surface(color = SwissTransferTheme.materialColors.surfaceContainerHighest) {
Column(Modifier.padding(16.dp)) {
SmallFileTile(
SmallFileItem(
file = object : FileUiItem {
override val fileName: String = "How to not get fired.pdf"
override val uid: String = fileName
Expand All @@ -83,7 +83,7 @@ private fun SmallFileTilePreview() {

Spacer(modifier = Modifier.height(16.dp))

SmallFileTile(
SmallFileItem(
file = object : FileUiItem {
override val fileName: String = "How to not get fired.pdf"
override val uid: String = fileName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fun ImportedFilesCard(
items = files().asReversed(),
key = { TransferLazyRowKey(TransferLazyRowKey.Type.FILE, it.uid) },
) { file ->
SmallFileTile(
SmallFileItem(
modifier = Modifier.animateItem(),
file = file,
smallFileTileSize = SmallFileTileSize.LARGE,
Expand Down

0 comments on commit 8262a8f

Please sign in to comment.