Skip to content

Commit

Permalink
Remove unused ressources after removing file choice bottom sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX authored and KevinBoulongne committed Nov 21, 2024
1 parent 3ee5f2d commit 27714e1
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 275 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.infomaniak.swisstransfer.R
import com.infomaniak.swisstransfer.ui.images.AppImages.AppIcons
import com.infomaniak.swisstransfer.ui.images.icons.Camera
import com.infomaniak.swisstransfer.ui.images.icons.Add
import com.infomaniak.swisstransfer.ui.theme.Dimens
import com.infomaniak.swisstransfer.ui.theme.Margin
import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme
import com.infomaniak.swisstransfer.ui.utils.PreviewLightAndDark

private val BOTTOM_SHEET_ITEM_HEIGHT = 56.dp

// Unused for now, but this is still the official component with the appropriate style of a bottom sheet item so this needs to be
// used if we ever create a new bottom sheet
@Composable
fun BottomSheetItem(imageVector: ImageVector, @StringRes titleRes: Int, onClick: () -> Unit) {
SharpRippleButton(
Expand Down Expand Up @@ -73,7 +75,7 @@ fun BottomSheetItem(imageVector: ImageVector, @StringRes titleRes: Int, onClick:
private fun ChoiceItemPreview() {
SwissTransferTheme {
Surface {
BottomSheetItem(AppIcons.Camera, R.string.transferUploadSourceChoiceCamera) {}
BottomSheetItem(AppIcons.Add, R.string.appName) {}
}
}
}

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@
<string name="transferTypeQrCode">QR Code</string>
<string name="transferTypeScreenTitle">Übertragen</string>
<string name="transferTypeTitle">Schicken per</string>
<string name="transferUploadSourceChoiceCamera">Kamera</string>
<string name="transferUploadSourceChoiceFiles">Dateien durchsuchen</string>
<string name="transferUploadSourceChoiceGallery">Foto- und Videogalerie</string>
<string name="transferUploadSourceChoiceTitle">Herunterladen von</string>
<string name="uploadCancelConfirmBottomSheetCancel">Übertragung abbrechen</string>
<string name="uploadCancelConfirmBottomSheetClose">Schliessen und weiter</string>
<string name="uploadCancelConfirmBottomSheetTitle">Bist du dir sicher, dass du die Überweisung rückgängig machen willst?</string>
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@
<string name="transferTypeQrCode">QR Code</string>
<string name="transferTypeScreenTitle">Transferencia</string>
<string name="transferTypeTitle">Enviar por</string>
<string name="transferUploadSourceChoiceCamera">Cámara</string>
<string name="transferUploadSourceChoiceFiles">Examinar archivos</string>
<string name="transferUploadSourceChoiceGallery">Galería de fotos y vídeos</string>
<string name="transferUploadSourceChoiceTitle">Descargar desde</string>
<string name="uploadCancelConfirmBottomSheetCancel">Cancelar transferencia</string>
<string name="uploadCancelConfirmBottomSheetClose">Cerrar y continuar</string>
<string name="uploadCancelConfirmBottomSheetTitle">¿Estás seguro de que quieres cancelar la transferencia?</string>
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@
<string name="transferTypeQrCode">QR Code</string>
<string name="transferTypeScreenTitle">Transfert</string>
<string name="transferTypeTitle">Envoyer par</string>
<string name="transferUploadSourceChoiceCamera">Appareil photo</string>
<string name="transferUploadSourceChoiceFiles">Parcourir les fichiers</string>
<string name="transferUploadSourceChoiceGallery">Galerie photos et vidéos</string>
<string name="transferUploadSourceChoiceTitle">Télécharger à partir de</string>
<string name="uploadCancelConfirmBottomSheetCancel">Annuler le transfert</string>
<string name="uploadCancelConfirmBottomSheetClose">Fermer et continuer</string>
<string name="uploadCancelConfirmBottomSheetTitle">Es-tu certain de vouloir annuler le transfert ?</string>
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@
<string name="transferTypeQrCode">QR Code</string>
<string name="transferTypeScreenTitle">Trasferimento</string>
<string name="transferTypeTitle">Inviare da</string>
<string name="transferUploadSourceChoiceCamera">Macchina fotografica</string>
<string name="transferUploadSourceChoiceFiles">Sfoglia i file</string>
<string name="transferUploadSourceChoiceGallery">Galleria di foto e video</string>
<string name="transferUploadSourceChoiceTitle">Scarica da</string>
<string name="uploadCancelConfirmBottomSheetCancel">Annullamento del trasferimento</string>
<string name="uploadCancelConfirmBottomSheetClose">Chiudi e continua</string>
<string name="uploadCancelConfirmBottomSheetTitle">Sei sicuro di voler annullare il trasferimento?</string>
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@
<string name="transferTypeQrCode">QR Code</string>
<string name="transferTypeScreenTitle">Transfer</string>
<string name="transferTypeTitle">Send by</string>
<string name="transferUploadSourceChoiceCamera">Camera</string>
<string name="transferUploadSourceChoiceFiles">Browse files</string>
<string name="transferUploadSourceChoiceGallery">Photo and video gallery</string>
<string name="transferUploadSourceChoiceTitle">Upload from</string>
<string name="uploadCancelConfirmBottomSheetCancel">Cancel the transfer</string>
<string name="uploadCancelConfirmBottomSheetClose">Close and continue</string>
<string name="uploadCancelConfirmBottomSheetTitle">Are you sure you want to cancel the transfer?</string>
Expand Down

0 comments on commit 27714e1

Please sign in to comment.