Tweak ui
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user