Skip to content

Commit

Permalink
Upgrade about module and use modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuwu committed Sep 14, 2024
1 parent ff48669 commit b89ad9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ dependencies {
implementation project(':fiaticons')
implementation project(':cryptoicons')

implementation "dev.arkbuilders.components:about:0.1.0"
implementation "dev.arkbuilders.components:about:0.1.1"
implementation "androidx.compose.ui:ui:1.6.8"
implementation "androidx.navigation:navigation-compose:2.7.7"
implementation "androidx.compose.material3:material3:1.2.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package dev.arkbuilders.rate.presentation.settings

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
Expand All @@ -21,13 +20,12 @@ fun AboutScreen(navigator: DestinationsNavigator) {
AppTopBarBack(title = stringResource(R.string.about), navigator)
},
) {
Box(modifier = Modifier.padding(it)) {
ArkAbout(
appName = stringResource(id = R.string.app_name),
appLogoResId = R.drawable.ic_about_logo,
versionName = BuildConfig.VERSION_NAME,
privacyPolicyUrl = stringResource(R.string.privacy_policy_url),
)
}
ArkAbout(
modifier = Modifier.padding(it),
appName = stringResource(id = R.string.app_name),
appLogoResId = R.drawable.ic_about_logo,
versionName = BuildConfig.VERSION_NAME,
privacyPolicyUrl = stringResource(R.string.privacy_policy_url),
)
}
}

0 comments on commit b89ad9f

Please sign in to comment.