[🐴] DM button on profile (#4097)
* add profile button * separate out button to component * normalise subscribe to labeller button size * infinite staletime * use Link rather than Button and change icon * adjust icon position
This commit is contained in:
parent
2414559b80
commit
24f8794d4d
5 changed files with 125 additions and 42 deletions
|
|
@ -128,7 +128,7 @@ let ProfileHeaderLabeler = ({
|
|||
|
||||
const onPressSubscribe = React.useCallback(
|
||||
() =>
|
||||
requireAuth(async () => {
|
||||
requireAuth(async (): Promise<void> => {
|
||||
if (!canSubscribe) {
|
||||
cantSubscribePrompt.open()
|
||||
return
|
||||
|
|
@ -197,7 +197,6 @@ let ProfileHeaderLabeler = ({
|
|||
<View
|
||||
style={[
|
||||
{
|
||||
paddingVertical: 12,
|
||||
backgroundColor:
|
||||
isSubscribed || !canSubscribe
|
||||
? state.hovered || state.pressed
|
||||
|
|
@ -207,7 +206,8 @@ let ProfileHeaderLabeler = ({
|
|||
? tokens.color.temp_purple_dark
|
||||
: tokens.color.temp_purple,
|
||||
},
|
||||
a.px_lg,
|
||||
a.py_sm,
|
||||
a.px_md,
|
||||
a.rounded_sm,
|
||||
a.gap_sm,
|
||||
]}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue