also add pressed state
This commit is contained in:
@@ -132,10 +132,12 @@ function Header({
|
|||||||
a.justify_center,
|
a.justify_center,
|
||||||
a.rounded_sm,
|
a.rounded_sm,
|
||||||
{backgroundColor: t.palette.primary_500},
|
{backgroundColor: t.palette.primary_500},
|
||||||
state.hovered && {backgroundColor: t.palette.primary_600},
|
(state.hovered || state.pressed) && {
|
||||||
|
backgroundColor: t.palette.primary_600,
|
||||||
|
},
|
||||||
]}
|
]}
|
||||||
{...props}>
|
{...props}>
|
||||||
<Text style={[a.font_bold]}>
|
<Text style={[a.font_bold, {color: 'white'}]}>
|
||||||
<Trans>Share</Trans>
|
<Trans>Share</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|||||||
Reference in New Issue
Block a user