Fix confirm profile sizing for blocks (#564)
parent
8c675248d4
commit
af905947bc
|
@ -13,7 +13,7 @@ import {cleanError} from 'lib/strings/errors'
|
||||||
import {usePalette} from 'lib/hooks/usePalette'
|
import {usePalette} from 'lib/hooks/usePalette'
|
||||||
import {isDesktopWeb} from 'platform/detection'
|
import {isDesktopWeb} from 'platform/detection'
|
||||||
|
|
||||||
export const snapPoints = [300]
|
export const snapPoints = ['50%']
|
||||||
|
|
||||||
export function Component({
|
export function Component({
|
||||||
title,
|
title,
|
||||||
|
|
|
@ -180,7 +180,7 @@ const ProfileHeaderLoaded = observer(
|
||||||
name: 'confirm',
|
name: 'confirm',
|
||||||
title: 'Block Account',
|
title: 'Block Account',
|
||||||
message:
|
message:
|
||||||
'Blocked accounts cannot reply in your threads, mention you, or otherwise interact with you. You will not see their content and they will be prevented from seeing yours.',
|
'Blocked accounts cannot reply in your threads, mention you, or otherwise interact with you.',
|
||||||
onPressConfirm: async () => {
|
onPressConfirm: async () => {
|
||||||
try {
|
try {
|
||||||
await view.blockAccount()
|
await view.blockAccount()
|
||||||
|
@ -200,7 +200,7 @@ const ProfileHeaderLoaded = observer(
|
||||||
name: 'confirm',
|
name: 'confirm',
|
||||||
title: 'Unblock Account',
|
title: 'Unblock Account',
|
||||||
message:
|
message:
|
||||||
'The account will be able to interact with you after unblocking. (You can always block again in the future.)',
|
'The account will be able to interact with you after unblocking.',
|
||||||
onPressConfirm: async () => {
|
onPressConfirm: async () => {
|
||||||
try {
|
try {
|
||||||
await view.unblockAccount()
|
await view.unblockAccount()
|
||||||
|
|
Loading…
Reference in New Issue