change button label and change opacity when no media (#5794)
This commit is contained in:
@@ -63,6 +63,7 @@ export function LabelsBtn({
|
|||||||
msg`Opens a dialog to add a content warning to your post`,
|
msg`Opens a dialog to add a content warning to your post`,
|
||||||
)}
|
)}
|
||||||
style={[
|
style={[
|
||||||
|
!hasMedia && {opacity: 0.5},
|
||||||
native({
|
native({
|
||||||
paddingHorizontal: 8,
|
paddingHorizontal: 8,
|
||||||
paddingVertical: 6,
|
paddingVertical: 6,
|
||||||
@@ -73,7 +74,7 @@ export function LabelsBtn({
|
|||||||
{labels.length > 0 ? (
|
{labels.length > 0 ? (
|
||||||
<Trans>Labels added</Trans>
|
<Trans>Labels added</Trans>
|
||||||
) : (
|
) : (
|
||||||
<Trans>Self-labels</Trans>
|
<Trans>Add label</Trans>
|
||||||
)}
|
)}
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user