Skip to content

Commit

Permalink
Rename MainScreenFab to NewTransferFab
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Aug 15, 2024
1 parent 3738a32 commit fd7c803
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import androidx.compose.ui.unit.dp
import com.infomaniak.swisstransfer.ui.NewTransferActivity

@Composable
fun MainScreenFab(
fun NewTransferFab(
modifier: Modifier = Modifier,
mainScreenFabType: MainScreenFabType
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteType
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import com.infomaniak.swisstransfer.ui.components.MainScreenFab
import com.infomaniak.swisstransfer.ui.components.NewTransferFab
import com.infomaniak.swisstransfer.ui.components.MainScreenFabType
import com.infomaniak.swisstransfer.ui.navigation.MainNavigation
import com.infomaniak.swisstransfer.ui.navigation.NavigationItem
Expand Down Expand Up @@ -116,7 +116,7 @@ private fun AppNavigationRail(
) {
NavigationRail(
header = {
MainScreenFab(
NewTransferFab(
modifier = Modifier.padding(vertical = Margin.Large),
mainScreenFabType = MainScreenFabType.NAVIGATION_RAIL,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import androidx.compose.material3.Text
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteType
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.infomaniak.swisstransfer.ui.components.MainScreenFab
import com.infomaniak.swisstransfer.ui.components.NewTransferFab
import com.infomaniak.swisstransfer.ui.components.MainScreenFabType
import com.infomaniak.swisstransfer.ui.screen.main.LocalNavType
import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme
Expand All @@ -41,7 +41,7 @@ fun ReceivedScreen(navigateToDetails: (transferId: Int) -> Unit) {
private fun ReceivedScreen(navType: NavigationSuiteType) {
Scaffold(
floatingActionButton = {
if (navType == NavigationSuiteType.NavigationBar) MainScreenFab(mainScreenFabType = MainScreenFabType.BOTTOM_BAR)
if (navType == NavigationSuiteType.NavigationBar) NewTransferFab(mainScreenFabType = MainScreenFabType.BOTTOM_BAR)
}
) { contentPadding ->
Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import com.infomaniak.swisstransfer.R
import com.infomaniak.swisstransfer.ui.components.MainScreenFab
import com.infomaniak.swisstransfer.ui.components.NewTransferFab
import com.infomaniak.swisstransfer.ui.components.MainScreenFabType
import com.infomaniak.swisstransfer.ui.screen.main.LocalNavType
import com.infomaniak.swisstransfer.ui.theme.Margin
Expand Down Expand Up @@ -80,7 +80,7 @@ fun EmptyScreen() {
text = stringResource(id = R.string.firstTransferDescription),
style = SwissTransferTheme.typography.bodyRegular
)
MainScreenFab(
NewTransferFab(
modifier = Modifier.padding(top = Margin.ExtraLarge),
mainScreenFabType = MainScreenFabType.EMPTY_STATE,
)
Expand All @@ -93,7 +93,7 @@ private fun TransferScreen(
) {
Scaffold(
floatingActionButton = {
if (navType == NavigationSuiteType.NavigationBar) MainScreenFab(mainScreenFabType = MainScreenFabType.BOTTOM_BAR)
if (navType == NavigationSuiteType.NavigationBar) NewTransferFab(mainScreenFabType = MainScreenFabType.BOTTOM_BAR)
}
) { contentPadding ->
Text(
Expand Down

0 comments on commit fd7c803

Please sign in to comment.