Adds content sensitivity descriptors to all screens
This commit is contained in:
+4
-1
@@ -255,7 +255,10 @@ private fun GenericCommentPostBody(
|
||||
verticalAlignment = CenterVertically,
|
||||
modifier = Modifier.padding(vertical = Size5dp, horizontal = Size10dp),
|
||||
) {
|
||||
ContentSensitivityExplainer()
|
||||
ContentSensitivityExplainer(
|
||||
description = postViewModel.contentWarningDescription,
|
||||
onDescriptionChange = { postViewModel.contentWarningDescription = it },
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-1
@@ -238,7 +238,10 @@ fun GroupDMScreenContent(
|
||||
DisplayPreviews(postViewModel, accountViewModel, nav)
|
||||
|
||||
if (postViewModel.wantsToMarkAsSensitive) {
|
||||
ContentSensitivityExplainer()
|
||||
ContentSensitivityExplainer(
|
||||
description = postViewModel.contentWarningDescription,
|
||||
onDescriptionChange = { postViewModel.contentWarningDescription = it },
|
||||
)
|
||||
}
|
||||
|
||||
if (postViewModel.wantsToAddGeoHash) {
|
||||
|
||||
+4
-1
@@ -223,7 +223,10 @@ private fun NewProductBody(
|
||||
verticalAlignment = CenterVertically,
|
||||
modifier = Modifier.padding(vertical = Size5dp, horizontal = Size10dp),
|
||||
) {
|
||||
ContentSensitivityExplainer()
|
||||
ContentSensitivityExplainer(
|
||||
description = postViewModel.contentWarningDescription,
|
||||
onDescriptionChange = { postViewModel.contentWarningDescription = it },
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-1
@@ -212,7 +212,10 @@ fun PublicMessageScreenContent(
|
||||
DisplayPreviews(postViewModel.urlPreviews, accountViewModel, nav)
|
||||
|
||||
if (postViewModel.wantsToMarkAsSensitive) {
|
||||
ContentSensitivityExplainer()
|
||||
ContentSensitivityExplainer(
|
||||
description = postViewModel.contentWarningDescription,
|
||||
onDescriptionChange = { postViewModel.contentWarningDescription = it },
|
||||
)
|
||||
}
|
||||
|
||||
if (postViewModel.wantsToAddGeoHash) {
|
||||
|
||||
Reference in New Issue
Block a user