Skip to content

Commit 561dee1

Browse files
Apply suggestions from code review
Co-authored-by: Markus Hintersteiner <markus.hintersteiner@sentry.io>
1 parent d4fe38d commit 561dee1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Features
66

7-
- Add Compose user feedback button ([#4559](https://github.com/getsentry/sentry-java/pull/4559))
7+
- Add `SentryUserFeedbackButton` Composable ([#4559](https://github.com/getsentry/sentry-java/pull/4559))
88

99
### Fixes
1010

sentry-compose/src/androidMain/kotlin/io/sentry/compose/SentryUserFeedbackButton.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import io.sentry.SentryFeedbackOptions
1919
public fun SentryUserFeedbackButton(
2020
modifier: Modifier = Modifier,
2121
configurator: SentryFeedbackOptions.OptionsConfigurator? = null,
22+
text: "Report a Bug",
2223
) {
2324
Button(modifier = modifier, onClick = { Sentry.showUserFeedbackDialog(configurator) }) {
2425
Row(
@@ -27,10 +28,10 @@ public fun SentryUserFeedbackButton(
2728
) {
2829
Icon(
2930
painter = painterResource(id = R.drawable.sentry_user_feedback_compose_button_logo_24),
30-
contentDescription = "Vector Icon",
31+
contentDescription = null,
3132
)
3233
Spacer(Modifier.padding(horizontal = 4.dp))
33-
Text(text = "Report a Bug")
34+
Text(text = text)
3435
}
3536
}
3637
}

0 commit comments

Comments
 (0)