Skip to content

Commit

Permalink
Merge pull request #168 from Infomaniak/clean-code
Browse files Browse the repository at this point in the history
refactor: Clean code
  • Loading branch information
KevinBoulongne authored Nov 13, 2024
2 parents 531b2aa + c13c3df commit e07b900
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 67 deletions.
2 changes: 1 addition & 1 deletion Core2/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<resources>
<string name="buttonCancel">Annuler</string>
<string name="buttonRetry">Réessayer</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import com.infomaniak.swisstransfer.ui.theme.Dimens
import com.infomaniak.swisstransfer.ui.theme.Margin
import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme


/**
* Specifying a progress has the priority over specifying showIndeterminateProgress
*/
Expand Down Expand Up @@ -70,7 +69,6 @@ fun LargeButton(
)
}


/**
* Specifying a progress has the priority over specifying showIndeterminateProgress
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ fun BoxScope.CrossCircleButton(onClick: (() -> Unit)?, size: Dp = 48.dp) {
}
}


@PreviewLightAndDark
@Composable
private fun CrossCircleButtonPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
package com.infomaniak.swisstransfer.ui.images.illus.uploadError


import android.content.res.Configuration
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ private fun DetailPane(navigator: ThreePaneScaffoldNavigator<String>) {
}
}

// Show the detail pane content if selected item is available
@Composable
private fun NoSelectionEmptyState() {
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ private fun SentScreen(transfers: List<Any>?) {
}
},
) {
if (transfers.isEmpty()) {
SentEmptyScreen()
} else {
SentListScreen(transfers)
}
if (transfers.isEmpty()) SentEmptyScreen()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ private fun DetailPane(
}
}

// Show the detail pane content if selected item is available
@Composable
private fun NoSelectionEmptyState() {
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ private data class TransferLazyRowKey(
}
}


@PreviewLightAndDark
@Composable
private fun ImportedFilesCardPreview(@PreviewParameter(FileUiListPreviewParameter::class) files: List<FileUi>) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<resources>
<string name="advancedSettingsTitle">Paramètres avancés</string>
<string name="buttonAddFiles">Ajouter des fichiers</string>
<string name="buttonCancel">Annuler</string>
Expand Down

0 comments on commit e07b900

Please sign in to comment.