Skip to content

Commit

Permalink
refactor: refactor client details screen to compose with multi module
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-gupta99 committed Apr 6, 2024
1 parent 72f40fd commit 78aff43
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ import com.mifos.core.designsystem.theme.White
@Composable
fun MifosScaffold(
icon: ImageVector?,
title : String?,
onBackPressed: () -> Unit,
actions: @Composable () -> Unit,
snackbarHostState: SnackbarHostState,
snackbarHostState: SnackbarHostState?,
bottomBar: @Composable () -> Unit,
content: @Composable (PaddingValues) -> Unit
) {
Expand All @@ -54,22 +55,24 @@ fun MifosScaffold(
}
},
title = {
Text(
text = stringResource(id = R.string.feature_client),
style = TextStyle(
fontSize = 24.sp,
fontWeight = FontWeight.Medium,
fontStyle = FontStyle.Normal,
fontFamily = FontFamily(Font(R.font.outfit_medium))
),
color = Black,
textAlign = TextAlign.Start
)
title?.let {
Text(
text = it,
style = TextStyle(
fontSize = 24.sp,
fontWeight = FontWeight.Medium,
fontStyle = FontStyle.Normal,
fontFamily = FontFamily(Font(R.font.outfit_medium))
),
color = Black,
textAlign = TextAlign.Start
)
}
},
actions = { actions() }
)
},
snackbarHost = { SnackbarHost(snackbarHostState) },
snackbarHost = { snackbarHostState?.let { SnackbarHost(it) } },
containerColor = White,
bottomBar = bottomBar
) { padding ->
Expand Down
4 changes: 0 additions & 4 deletions core/designsystem/src/main/res/values/strings.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ fun ClientDetailsScreen(

MifosScaffold(
icon = Icons.Rounded.ArrowBackIosNew,
title = stringResource(id = R.string.feature_client),
onBackPressed = { onBackPressed() },
actions = {
IconButton(onClick = { showMenu = showMenu.not() }) {
Expand Down

0 comments on commit 78aff43

Please sign in to comment.