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