use latest prettier
This commit is contained in:
+1
-1
@@ -287,7 +287,7 @@
|
|||||||
"jest-expo": "~54.0.17",
|
"jest-expo": "~54.0.17",
|
||||||
"jest-junit": "^16.0.0",
|
"jest-junit": "^16.0.0",
|
||||||
"lint-staged": "^13.2.3",
|
"lint-staged": "^13.2.3",
|
||||||
"prettier": "^3.6.0",
|
"prettier": "^3.8.3",
|
||||||
"react-native-dotenv": "^3.4.11",
|
"react-native-dotenv": "^3.4.11",
|
||||||
"react-refresh": "^0.14.0",
|
"react-refresh": "^0.14.0",
|
||||||
"svgo": "^3.3.2",
|
"svgo": "^3.3.2",
|
||||||
|
|||||||
Generated
+1
-1
@@ -639,7 +639,7 @@ importers:
|
|||||||
specifier: ^13.2.3
|
specifier: ^13.2.3
|
||||||
version: 13.3.0
|
version: 13.3.0
|
||||||
prettier:
|
prettier:
|
||||||
specifier: ^3.6.0
|
specifier: ^3.8.3
|
||||||
version: 3.8.3
|
version: 3.8.3
|
||||||
react-native-dotenv:
|
react-native-dotenv:
|
||||||
specifier: ^3.4.11
|
specifier: ^3.4.11
|
||||||
|
|||||||
@@ -308,11 +308,11 @@ export function useServerStateQuery() {
|
|||||||
const geolocation = device.get(['mergedGeolocation'])
|
const geolocation = device.get(['mergedGeolocation'])
|
||||||
const isAArequired = Boolean(
|
const isAArequired = Boolean(
|
||||||
config &&
|
config &&
|
||||||
geolocation &&
|
geolocation &&
|
||||||
!!getAgeAssuranceRegionConfig(config, {
|
!!getAgeAssuranceRegionConfig(config, {
|
||||||
countryCode: geolocation?.countryCode ?? '',
|
countryCode: geolocation?.countryCode ?? '',
|
||||||
regionCode: geolocation?.regionCode,
|
regionCode: geolocation?.regionCode,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
// only refetch when needed
|
// only refetch when needed
|
||||||
|
|||||||
@@ -125,9 +125,9 @@ export function useLink({
|
|||||||
|
|
||||||
const requiresWarning = Boolean(
|
const requiresWarning = Boolean(
|
||||||
!disableMismatchWarning &&
|
!disableMismatchWarning &&
|
||||||
displayText &&
|
displayText &&
|
||||||
isExternal &&
|
isExternal &&
|
||||||
linkRequiresWarning(href, displayText),
|
linkRequiresWarning(href, displayText),
|
||||||
)
|
)
|
||||||
|
|
||||||
if (IS_WEB) {
|
if (IS_WEB) {
|
||||||
@@ -220,9 +220,9 @@ export function useLink({
|
|||||||
const handleLongPress = useCallback(() => {
|
const handleLongPress = useCallback(() => {
|
||||||
const requiresWarning = Boolean(
|
const requiresWarning = Boolean(
|
||||||
!disableMismatchWarning &&
|
!disableMismatchWarning &&
|
||||||
displayText &&
|
displayText &&
|
||||||
isExternal &&
|
isExternal &&
|
||||||
linkRequiresWarning(href, displayText),
|
linkRequiresWarning(href, displayText),
|
||||||
)
|
)
|
||||||
|
|
||||||
if (requiresWarning) {
|
if (requiresWarning) {
|
||||||
|
|||||||
@@ -96,8 +96,8 @@ let PostControls = ({
|
|||||||
const playHaptic = useHaptics()
|
const playHaptic = useHaptics()
|
||||||
const isBlocked = Boolean(
|
const isBlocked = Boolean(
|
||||||
post.author.viewer?.blocking ||
|
post.author.viewer?.blocking ||
|
||||||
post.author.viewer?.blockedBy ||
|
post.author.viewer?.blockedBy ||
|
||||||
post.author.viewer?.blockingByList,
|
post.author.viewer?.blockingByList,
|
||||||
)
|
)
|
||||||
const replyDisabled = post.viewer?.replyDisabled
|
const replyDisabled = post.viewer?.replyDisabled
|
||||||
const {gtPhone} = useBreakpoints()
|
const {gtPhone} = useBreakpoints()
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ export function useFullVerificationState({
|
|||||||
verifications.length > 0
|
verifications.length > 0
|
||||||
const hasIssuedVerification = Boolean(
|
const hasIssuedVerification = Boolean(
|
||||||
viewerState &&
|
viewerState &&
|
||||||
viewerState.role === 'verifier' &&
|
viewerState.role === 'verifier' &&
|
||||||
profileState.role === 'default' &&
|
profileState.role === 'default' &&
|
||||||
verifications.find(v => v.issuer === currentAccount?.did),
|
verifications.find(v => v.issuer === currentAccount?.did),
|
||||||
)
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export function FollowingFeedPreferencesScreen({}: Props) {
|
|||||||
|
|
||||||
const mergeFeedEnabled = Boolean(
|
const mergeFeedEnabled = Boolean(
|
||||||
variables?.lab_mergeFeedEnabled ??
|
variables?.lab_mergeFeedEnabled ??
|
||||||
preferences?.feedViewPrefs?.lab_mergeFeedEnabled,
|
preferences?.feedViewPrefs?.lab_mergeFeedEnabled,
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -97,9 +97,9 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
|||||||
const author = opts.replyTo?.author || opts.quote?.author
|
const author = opts.replyTo?.author || opts.quote?.author
|
||||||
const isBlocked = Boolean(
|
const isBlocked = Boolean(
|
||||||
author &&
|
author &&
|
||||||
(author.viewer?.blocking ||
|
(author.viewer?.blocking ||
|
||||||
author.viewer?.blockedBy ||
|
author.viewer?.blockedBy ||
|
||||||
author.viewer?.blockingByList),
|
author.viewer?.blockingByList),
|
||||||
)
|
)
|
||||||
if (isBlocked) {
|
if (isBlocked) {
|
||||||
Toast.show(_(msg`Cannot interact with a blocked user`), {
|
Toast.show(_(msg`Cannot interact with a blocked user`), {
|
||||||
|
|||||||
@@ -351,14 +351,13 @@ export function BottomBar({navigation}: BottomTabBarProps) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BtnProps
|
interface BtnProps extends Pick<
|
||||||
extends Pick<
|
React.ComponentProps<typeof PressableScale>,
|
||||||
React.ComponentProps<typeof PressableScale>,
|
| 'accessible'
|
||||||
| 'accessible'
|
| 'accessibilityRole'
|
||||||
| 'accessibilityRole'
|
| 'accessibilityHint'
|
||||||
| 'accessibilityHint'
|
| 'accessibilityLabel'
|
||||||
| 'accessibilityLabel'
|
> {
|
||||||
> {
|
|
||||||
testID?: string
|
testID?: string
|
||||||
icon: JSX.Element
|
icon: JSX.Element
|
||||||
notificationCount?: string
|
notificationCount?: string
|
||||||
|
|||||||
Reference in New Issue
Block a user