change button label and change opacity when no media (#5794)

This commit is contained in:
Samuel Newman
2024-10-17 19:22:51 +03:00
committed by GitHub
parent 3848184c3d
commit f6170079a4
+2 -1
View File
@@ -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>