From 40ccb574b8bc0b81088b0c0972df3ce0cb4a2f84 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 4 Apr 2024 22:03:14 -0700 Subject: [PATCH] properly import linear gradient (#3423) --- src/components/Button.tsx | 2 +- src/components/GradientFill.tsx | 2 +- src/screens/Onboarding/StepAlgoFeeds/FeedCard.tsx | 2 +- src/view/com/composer/Composer.tsx | 2 +- src/view/com/modals/AltImage.tsx | 2 +- src/view/com/modals/CreateOrEditList.tsx | 2 +- src/view/com/modals/DeleteAccount.tsx | 2 +- src/view/com/modals/EditImage.tsx | 2 +- src/view/com/modals/EditProfile.tsx | 2 +- src/view/com/modals/EmbedConsent.tsx | 2 +- src/view/com/modals/Repost.tsx | 2 +- src/view/com/modals/crop-image/CropImage.web.tsx | 2 +- src/view/com/modals/lang-settings/ConfirmLanguagesButton.tsx | 2 +- src/view/com/util/fab/FABInner.tsx | 2 +- yarn.lock | 5 ----- 15 files changed, 14 insertions(+), 19 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 091111fd28..12b3fe4cbb 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -11,7 +11,7 @@ import { View, ViewStyle, } from 'react-native' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {Trans} from '@lingui/macro' import {android, atoms as a, flatten, tokens, useTheme} from '#/alf' diff --git a/src/components/GradientFill.tsx b/src/components/GradientFill.tsx index 17a1795f8f..3c64c8960e 100644 --- a/src/components/GradientFill.tsx +++ b/src/components/GradientFill.tsx @@ -1,5 +1,5 @@ import React from 'react' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {atoms as a, tokens} from '#/alf' diff --git a/src/screens/Onboarding/StepAlgoFeeds/FeedCard.tsx b/src/screens/Onboarding/StepAlgoFeeds/FeedCard.tsx index cf3b4b42b3..06b5a145af 100644 --- a/src/screens/Onboarding/StepAlgoFeeds/FeedCard.tsx +++ b/src/screens/Onboarding/StepAlgoFeeds/FeedCard.tsx @@ -1,7 +1,7 @@ import React from 'react' import {View} from 'react-native' import {Image} from 'expo-image' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 17e123a0a9..05367f0704 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -12,7 +12,7 @@ import { View, } from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {RichText} from '@atproto/api' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {msg, Trans} from '@lingui/macro' diff --git a/src/view/com/modals/AltImage.tsx b/src/view/com/modals/AltImage.tsx index ccf129f03b..197a6079ea 100644 --- a/src/view/com/modals/AltImage.tsx +++ b/src/view/com/modals/AltImage.tsx @@ -9,7 +9,7 @@ import { View, } from 'react-native' import {Image} from 'expo-image' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' diff --git a/src/view/com/modals/CreateOrEditList.tsx b/src/view/com/modals/CreateOrEditList.tsx index d2d779f635..f5f4f56db0 100644 --- a/src/view/com/modals/CreateOrEditList.tsx +++ b/src/view/com/modals/CreateOrEditList.tsx @@ -9,7 +9,7 @@ import { View, } from 'react-native' import {Image as RNImage} from 'react-native-image-crop-picker' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import { AppBskyGraphDefs, AppBskyRichtextFacet, diff --git a/src/view/com/modals/DeleteAccount.tsx b/src/view/com/modals/DeleteAccount.tsx index f88ce1d4ad..4c4fb20f18 100644 --- a/src/view/com/modals/DeleteAccount.tsx +++ b/src/view/com/modals/DeleteAccount.tsx @@ -6,7 +6,7 @@ import { TouchableOpacity, View, } from 'react-native' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' diff --git a/src/view/com/modals/EditImage.tsx b/src/view/com/modals/EditImage.tsx index cccce8fe49..b39dcd9364 100644 --- a/src/view/com/modals/EditImage.tsx +++ b/src/view/com/modals/EditImage.tsx @@ -1,7 +1,7 @@ import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react' import {Pressable, StyleSheet, View} from 'react-native' import {useWindowDimensions} from 'react-native' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {MaterialIcons} from '@expo/vector-icons' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' diff --git a/src/view/com/modals/EditProfile.tsx b/src/view/com/modals/EditProfile.tsx index c34b6aafc6..4b94aeb42f 100644 --- a/src/view/com/modals/EditProfile.tsx +++ b/src/view/com/modals/EditProfile.tsx @@ -10,7 +10,7 @@ import { } from 'react-native' import {Image as RNImage} from 'react-native-image-crop-picker' import Animated, {FadeOut} from 'react-native-reanimated' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {AppBskyActorDefs} from '@atproto/api' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' diff --git a/src/view/com/modals/EmbedConsent.tsx b/src/view/com/modals/EmbedConsent.tsx index 4f831754a6..9419447288 100644 --- a/src/view/com/modals/EmbedConsent.tsx +++ b/src/view/com/modals/EmbedConsent.tsx @@ -1,6 +1,6 @@ import React from 'react' import {StyleSheet, TouchableOpacity, View} from 'react-native' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' diff --git a/src/view/com/modals/Repost.tsx b/src/view/com/modals/Repost.tsx index ac926ab007..5dedee832b 100644 --- a/src/view/com/modals/Repost.tsx +++ b/src/view/com/modals/Repost.tsx @@ -1,6 +1,6 @@ import React from 'react' import {StyleSheet, TouchableOpacity, View} from 'react-native' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' diff --git a/src/view/com/modals/crop-image/CropImage.web.tsx b/src/view/com/modals/crop-image/CropImage.web.tsx index f3970b5be1..79ff5a02ab 100644 --- a/src/view/com/modals/crop-image/CropImage.web.tsx +++ b/src/view/com/modals/crop-image/CropImage.web.tsx @@ -1,7 +1,7 @@ import React from 'react' import {StyleSheet, TouchableOpacity, View} from 'react-native' import {Image as RNImage} from 'react-native-image-crop-picker' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {Slider} from '@miblanchard/react-native-slider' diff --git a/src/view/com/modals/lang-settings/ConfirmLanguagesButton.tsx b/src/view/com/modals/lang-settings/ConfirmLanguagesButton.tsx index b2bcdb96a4..ab21ba65af 100644 --- a/src/view/com/modals/lang-settings/ConfirmLanguagesButton.tsx +++ b/src/view/com/modals/lang-settings/ConfirmLanguagesButton.tsx @@ -1,6 +1,6 @@ import React from 'react' import {Pressable, StyleSheet, Text, View} from 'react-native' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' diff --git a/src/view/com/util/fab/FABInner.tsx b/src/view/com/util/fab/FABInner.tsx index 0c155fa620..a01756da06 100644 --- a/src/view/com/util/fab/FABInner.tsx +++ b/src/view/com/util/fab/FABInner.tsx @@ -2,7 +2,7 @@ import React, {ComponentProps} from 'react' import {StyleSheet, TouchableWithoutFeedback} from 'react-native' import Animated from 'react-native-reanimated' import {useSafeAreaInsets} from 'react-native-safe-area-context' -import LinearGradient from 'expo-linear-gradient' +import {LinearGradient} from 'expo-linear-gradient' import {isWeb} from '#/platform/detection' import {useMinimalShellMode} from 'lib/hooks/useMinimalShellMode' diff --git a/yarn.lock b/yarn.lock index 053815ef9a..323ac3c106 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18697,11 +18697,6 @@ react-native-uuid@^2.0.1: resolved "https://registry.yarnpkg.com/react-native-uuid/-/react-native-uuid-2.0.1.tgz#ed4e2dfb1683eddb66967eb5dca140dfe1abddb9" integrity sha512-cptnoIbL53GTCrWlb/+jrDC6tvb7ypIyzbXNJcpR3Vab0mkeaaVd5qnB3f0whXYzS+SMoSQLcUUB0gEWqkPC0g== -react-native-web-linear-gradient@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/react-native-web-linear-gradient/-/react-native-web-linear-gradient-1.1.2.tgz#33f85f7085a0bb5ffa5106faf02ed105b92a9ed7" - integrity sha512-SmUnpwT49CEe78pXvIvYf72Es8Pv+ZYKCnEOgb2zAKpEUDMo0+xElfRJhwt5nfI8krJ5WbFPKnoDgD0uUjAN1A== - react-native-web-webview@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/react-native-web-webview/-/react-native-web-webview-1.0.2.tgz#c215efa70c17589f2c8d640b1f1dc669b18c6e02"