Skip to content

Commit

Permalink
Add missing comas
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/components/FilePreview.kt

Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/components/FilePreview.kt

Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferCard.kt

Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/ImportFilesScreen.kt

Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt

Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt

Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt

Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt

Co-authored-by: Kevin Boulongne <[email protected]>

Update app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/SelectedFilesCard.kt

Co-authored-by: Kevin Boulongne <[email protected]>
  • Loading branch information
2 people authored and LunarX committed Oct 17, 2024
1 parent f2f6fae commit 776a4c9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fun BoxScope.CrossCircleButton(onClick: (() -> Unit)?, size: Dp = 48.dp) {
modifier = Modifier.size(Margin.Small),
imageVector = AppImages.AppIcons.CrossThick,
contentDescription = stringResource(R.string.contentDescriptionButtonRemove),
tint = Color.White
tint = Color.White,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import com.infomaniak.swisstransfer.ui.utils.hasPreview
fun FilePreview(
file: FileUiItem,
circleColor: Color,
circleSize: Dp
circleSize: Dp,
) {
var displayPreview by rememberSaveable { mutableStateOf(file.hasPreview) }

Expand Down Expand Up @@ -80,7 +80,7 @@ private fun FileIcon(fileType: FileType, color: Color, circleSize: Dp) {
modifier = Modifier.size(circleSize / 2),
imageVector = fileType.icon,
contentDescription = null,
tint = fileType.color(LocalIsDarkMode.current)
tint = fileType.color(LocalIsDarkMode.current),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fun SwissTransferCard(modifier: Modifier = Modifier, content: @Composable Column
modifier = modifier,
shape = Shapes.medium,
colors = CardDefaults.cardColors(contentColor = SwissTransferTheme.colors.secondaryTextColor),
content = content
content = content,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme
import com.infomaniak.swisstransfer.ui.utils.PreviewLargeWindow
import com.infomaniak.swisstransfer.ui.utils.PreviewSmallWindow

private const val TOTAL_FILE_SIZE: Long = 50_000_000_000
private const val TOTAL_FILE_SIZE: Long = 50_000_000_000L

@Composable
fun ImportFilesScreen(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun SelectedFilesCard(
files: () -> List<FileUiItem>,
formattedSizeWithUnits: () -> String,
showUploadSourceChoiceBottomSheet: () -> Unit,
removeFileByUid: (uid: String) -> Unit
removeFileByUid: (uid: String) -> Unit,
) {
val fileCount by remember { derivedStateOf { files().count() } }

Expand Down Expand Up @@ -81,14 +81,14 @@ fun SelectedFilesCard(
imageVector = AppImages.AppIcons.ChevronRightSmall,
contentDescription = null,
modifier = Modifier.padding(Margin.Medium),
tint = SwissTransferTheme.colors.iconColor
tint = SwissTransferTheme.colors.iconColor,
)
}

LazyRow(
Modifier.fillMaxWidth(),
contentPadding = PaddingValues(start = Margin.Medium, end = Margin.Medium, bottom = Margin.Medium),
horizontalArrangement = Arrangement.spacedBy(Margin.Medium)
horizontalArrangement = Arrangement.spacedBy(Margin.Medium),
) {
item(key = TransferLazyRowKey(TransferLazyRowKey.Type.ADD_BUTTON)) {
AddNewFileButton(Modifier.animateItem()) { showUploadSourceChoiceBottomSheet() }
Expand All @@ -102,7 +102,7 @@ fun SelectedFilesCard(
modifier = Modifier.animateItem(),
file = file,
smallFileTileSize = SmallFileTileSize.LARGE,
onRemove = { removeFileByUid(file.uid) }
onRemove = { removeFileByUid(file.uid) },
)
}
}
Expand Down Expand Up @@ -150,7 +150,7 @@ private fun AddNewFileButton(modifier: Modifier = Modifier, onClick: () -> Unit)
@Parcelize
private data class TransferLazyRowKey(
val type: Type,
val fileUid: String? = null
val fileUid: String? = null,
) : Parcelable {
enum class Type {
ADD_BUTTON, FILE
Expand Down

0 comments on commit 776a4c9

Please sign in to comment.