Rework "Who can reply" to blend more nicely into the UI (#4578)
* Rework WhoCanReply controls in threads to blend more nicely * Fix layout * Fix post control hitslops * Move dialog content to separate component --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This commit is contained in:
parent
75aec19230
commit
80197556f1
5 changed files with 314 additions and 186 deletions
|
@ -3,7 +3,7 @@ import {View} from 'react-native'
|
|||
import {msg, plural} from '@lingui/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
|
||||
import {HITSLOP_10, HITSLOP_20} from '#/lib/constants'
|
||||
import {POST_CTRL_HITSLOP} from '#/lib/constants'
|
||||
import {useHaptics} from '#/lib/haptics'
|
||||
import {useRequireAuth} from '#/state/session'
|
||||
import {atoms as a, useTheme} from '#/alf'
|
||||
|
@ -67,7 +67,7 @@ let RepostButton = ({
|
|||
shape="round"
|
||||
variant="ghost"
|
||||
color="secondary"
|
||||
hitSlop={big ? HITSLOP_20 : HITSLOP_10}>
|
||||
hitSlop={POST_CTRL_HITSLOP}>
|
||||
<Repost style={color} width={big ? 22 : 18} />
|
||||
{typeof repostCount !== 'undefined' && repostCount > 0 ? (
|
||||
<Text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue