This commit is contained in:
Paul Frazee
2024-03-04 16:33:07 -08:00
parent f99307033c
commit b26e280373
2 changed files with 2 additions and 10 deletions
@@ -17,7 +17,6 @@ export function ModerationLabelPref({
labelValueDefinition: InterprettedLabelValueDefinition labelValueDefinition: InterprettedLabelValueDefinition
disabled?: boolean disabled?: boolean
}) { }) {
console.log({labelValueDefinition})
const t = useTheme() const t = useTheme()
const allLabelStrings = useLabelStrings() const allLabelStrings = useLabelStrings()
const labelStrings = labelValueDefinition.locales[0] // TODO look up locale const labelStrings = labelValueDefinition.locales[0] // TODO look up locale
+2 -9
View File
@@ -135,19 +135,12 @@ export function ProfileLabelsSectionInner({
) : null} ) : null}
</View> </View>
{labelDefs.length > 0 && ( {labelDefs.length > 0 && (
<View <View style={[a.mt_xl, t.atoms.bg_contrast_25, a.rounded_md, a.py_xs]}>
style={[
a.mt_xl,
t.atoms.bg_contrast_25,
a.rounded_md,
a.border,
t.atoms.border_contrast_low,
]}>
{labelDefs.map((labelDef, i) => { {labelDefs.map((labelDef, i) => {
return ( return (
<React.Fragment key={labelDef.identifier}> <React.Fragment key={labelDef.identifier}>
{i !== 0 && <Divider />} {i !== 0 && <Divider />}
<View style={[a.py_lg, a.px_md]}> <View style={[a.py_md, a.px_md]}>
<ModerationLabelPref <ModerationLabelPref
disabled={isSubscribed ? undefined : true} disabled={isSubscribed ? undefined : true}
labelValueDefinition={labelDef} labelValueDefinition={labelDef}