Skip to content

Commit

Permalink
Updating generic error button (#487)
Browse files Browse the repository at this point in the history
Making the retry button for the generic error use the proper button type

Co-authored-by: John Oberhauser <j.git-global@obez.io>
  • Loading branch information
JohnOberhauser and John Oberhauser committed Apr 23, 2024
1 parent 0da3aee commit 79360a9
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import social.firefly.core.ui.common.R
import social.firefly.core.ui.common.button.FfButton

@Composable
fun GenericError(
Expand All @@ -29,9 +30,8 @@ fun GenericError(
modifier = Modifier.align(Alignment.CenterHorizontally),
text = stringResource(id = R.string.error_oops),
)
Button(
modifier =
Modifier
FfButton(
modifier = Modifier
.padding(8.dp)
.align(Alignment.CenterHorizontally),
onClick = { onRetryClicked() },
Expand Down

0 comments on commit 79360a9

Please sign in to comment.