Skip to content

Commit

Permalink
DevApp Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Bird committed Apr 19, 2024
1 parent 8de73ab commit e4df772
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import com.uid2.devapp.R

@Composable
fun ActionButtonView(modifier: Modifier, onResetClick: () -> Unit, onRefreshClick: () -> Unit) {
Expand All @@ -15,11 +17,11 @@ fun ActionButtonView(modifier: Modifier, onResetClick: () -> Unit, onRefreshClic
horizontalArrangement = Arrangement.SpaceEvenly,
) {
Button(onClick = onResetClick) {
Text("Reset")
Text(stringResource(id = R.string.action_reset))
}

Button(onClick = onRefreshClick) {
Text("Refresh")
Text(stringResource(id = R.string.action_refresh))
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ fun UserIdentityView(modifier: Modifier, identity: UID2Identity?, status: Identi
.padding(0.dp, 10.dp),
verticalArrangement = Arrangement.spacedBy(10.dp),
) {
Text(
modifier = Modifier.padding(bottom = 10.dp),
text = stringResource(id = R.string.current_identity),
fontSize = 28.sp,
fontWeight = FontWeight.Bold,
)

identity?.let {
UserIdentityParameter(stringResource(R.string.identity_advertising_token), identity.advertisingToken)
UserIdentityParameter(stringResource(R.string.identity_refresh_token), identity.refreshToken)
Expand Down
5 changes: 5 additions & 0 deletions dev-app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<string name="phone">Phone Number</string>
<string name="generate_client_side">Client Side</string>

<string name="current_identity">Current Identity</string>

<string name="identity_advertising_token">Advertising Token</string>
<string name="identity_refresh_token">Refresh Token</string>
<string name="identity_identity_expires">Identity Expires</string>
Expand All @@ -21,4 +23,7 @@
<string name="status_refresh_expired">Refresh Expired</string>
<string name="status_opt_out">OptOut</string>

<string name="action_reset">Reset</string>
<string name="action_refresh">Manual Refresh</string>

</resources>

0 comments on commit e4df772

Please sign in to comment.