diff options
Diffstat (limited to 'src/view/screens')
-rw-r--r-- | src/view/screens/Feeds.tsx | 11 | ||||
-rw-r--r-- | src/view/screens/Lists.tsx | 8 | ||||
-rw-r--r-- | src/view/screens/ProfileList.tsx | 5 | ||||
-rw-r--r-- | src/view/screens/SavedFeeds.tsx | 11 | ||||
-rw-r--r-- | src/view/screens/Settings/index.tsx | 5 |
5 files changed, 20 insertions, 20 deletions
diff --git a/src/view/screens/Feeds.tsx b/src/view/screens/Feeds.tsx index 5a2d71087..310c3dc60 100644 --- a/src/view/screens/Feeds.tsx +++ b/src/view/screens/Feeds.tsx @@ -33,14 +33,13 @@ import {ViewHeader} from 'view/com/util/ViewHeader' import {NoFollowingFeed} from '#/screens/Feeds/NoFollowingFeed' import {NoSavedFeedsOfAnyType} from '#/screens/Feeds/NoSavedFeedsOfAnyType' import {atoms as a, useTheme} from '#/alf' +import {Divider} from '#/components/Divider' +import * as FeedCard from '#/components/FeedCard' import {IconCircle} from '#/components/IconCircle' +import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRight} from '#/components/icons/Chevron' import {FilterTimeline_Stroke2_Corner0_Rounded as FilterTimeline} from '#/components/icons/FilterTimeline' import {ListMagnifyingGlass_Stroke2_Corner0_Rounded} from '#/components/icons/ListMagnifyingGlass' import {ListSparkle_Stroke2_Corner0_Rounded} from '#/components/icons/ListSparkle' -import hairlineWidth = StyleSheet.hairlineWidth -import {Divider} from '#/components/Divider' -import * as FeedCard from '#/components/FeedCard' -import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRight} from '#/components/icons/Chevron' import * as ListCard from '#/components/ListCard' type Props = NativeStackScreenProps<CommonNavigatorParams, 'Feeds'> @@ -793,13 +792,13 @@ const styles = StyleSheet.create({ paddingHorizontal: 16, paddingVertical: 14, gap: 12, - borderBottomWidth: hairlineWidth, + borderBottomWidth: StyleSheet.hairlineWidth, }, savedFeedMobile: { paddingVertical: 10, }, offlineSlug: { - borderWidth: hairlineWidth, + borderWidth: StyleSheet.hairlineWidth, borderRadius: 4, paddingHorizontal: 4, paddingVertical: 2, diff --git a/src/view/screens/Lists.tsx b/src/view/screens/Lists.tsx index 12ea6f48b..9daeaba18 100644 --- a/src/view/screens/Lists.tsx +++ b/src/view/screens/Lists.tsx @@ -16,7 +16,6 @@ import {MyLists} from '#/view/com/lists/MyLists' import {Button} from 'view/com/util/forms/Button' import {SimpleViewHeader} from 'view/com/util/SimpleViewHeader' import {Text} from 'view/com/util/text/Text' -import hairlineWidth = StyleSheet.hairlineWidth type Props = NativeStackScreenProps<CommonNavigatorParams, 'Lists'> export function ListsScreen({}: Props) { @@ -55,8 +54,11 @@ export function ListsScreen({}: Props) { style={[ pal.border, isMobile - ? {borderBottomWidth: hairlineWidth} - : {borderLeftWidth: hairlineWidth, borderRightWidth: hairlineWidth}, + ? {borderBottomWidth: StyleSheet.hairlineWidth} + : { + borderLeftWidth: StyleSheet.hairlineWidth, + borderRightWidth: StyleSheet.hairlineWidth, + }, ]}> <View style={{flex: 1}}> <Text type="title-lg" style={[pal.text, {fontWeight: 'bold'}]}> diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx index 89682af5f..0ed44758d 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -65,7 +65,6 @@ import {useDialogControl} from '#/components/Dialog' import * as Prompt from '#/components/Prompt' import {ReportDialog, useReportDialogControl} from '#/components/ReportDialog' import {RichText} from '#/components/RichText' -import hairlineWidth = StyleSheet.hairlineWidth const SECTION_TITLES_CURATE = ['Posts', 'About'] const SECTION_TITLES_MOD = ['About'] @@ -803,7 +802,7 @@ const AboutSection = React.forwardRef<SectionRef, AboutSectionProps>( <View style={[ { - borderTopWidth: hairlineWidth, + borderTopWidth: StyleSheet.hairlineWidth, padding: isMobile ? 14 : 20, gap: 12, }, @@ -954,7 +953,7 @@ function ErrorScreen({error}: {error: string}) { marginTop: 10, paddingHorizontal: 18, paddingVertical: 14, - borderTopWidth: hairlineWidth, + borderTopWidth: StyleSheet.hairlineWidth, }, ]}> <Text type="title-lg" style={[pal.text, s.mb10]}> diff --git a/src/view/screens/SavedFeeds.tsx b/src/view/screens/SavedFeeds.tsx index ef76cdcb2..3402db2c1 100644 --- a/src/view/screens/SavedFeeds.tsx +++ b/src/view/screens/SavedFeeds.tsx @@ -32,7 +32,6 @@ import {NoFollowingFeed} from '#/screens/Feeds/NoFollowingFeed' import {NoSavedFeedsOfAnyType} from '#/screens/Feeds/NoSavedFeedsOfAnyType' import {atoms as a, useTheme} from '#/alf' import {FilterTimeline_Stroke2_Corner0_Rounded as FilterTimeline} from '#/components/icons/FilterTimeline' -import hairlineWidth = StyleSheet.hairlineWidth const HITSLOP_TOP = { top: 20, @@ -93,7 +92,8 @@ export function SavedFeeds({}: Props) { <ViewHeader title={_(msg`Edit My Feeds`)} showOnDesktop showBorder /> <ScrollView style={s.flex1} contentContainerStyle={[styles.noBorder]}> {noSavedFeedsOfAnyType && ( - <View style={[pal.border, {borderBottomWidth: hairlineWidth}]}> + <View + style={[pal.border, {borderBottomWidth: StyleSheet.hairlineWidth}]}> <NoSavedFeedsOfAnyType /> </View> )} @@ -135,7 +135,8 @@ export function SavedFeeds({}: Props) { )} {noFollowingFeed && ( - <View style={[pal.border, {borderBottomWidth: hairlineWidth}]}> + <View + style={[pal.border, {borderBottomWidth: StyleSheet.hairlineWidth}]}> <NoFollowingFeed /> </View> )} @@ -437,12 +438,12 @@ const styles = StyleSheet.create({ paddingHorizontal: 14, paddingTop: 20, paddingBottom: 10, - borderBottomWidth: hairlineWidth, + borderBottomWidth: StyleSheet.hairlineWidth, }, itemContainer: { flexDirection: 'row', alignItems: 'center', - borderBottomWidth: hairlineWidth, + borderBottomWidth: StyleSheet.hairlineWidth, }, footerText: { paddingHorizontal: 26, diff --git a/src/view/screens/Settings/index.tsx b/src/view/screens/Settings/index.tsx index f59bfb183..db74d5c0d 100644 --- a/src/view/screens/Settings/index.tsx +++ b/src/view/screens/Settings/index.tsx @@ -62,13 +62,12 @@ import {UserAvatar} from 'view/com/util/UserAvatar' import {ScrollView} from 'view/com/util/Views' import {DeactivateAccountDialog} from '#/screens/Settings/components/DeactivateAccountDialog' import {useTheme} from '#/alf' +import {atoms as a} from '#/alf' import {useDialogControl} from '#/components/Dialog' import {BirthDateSettingsDialog} from '#/components/dialogs/BirthDateSettings' import {navigate, resetToTab} from '#/Navigation' import {Email2FAToggle} from './Email2FAToggle' import {ExportCarDialog} from './ExportCarDialog' -import hairlineWidth = StyleSheet.hairlineWidth -import {atoms as a} from '#/alf' function SettingsAccountCard({ account, @@ -326,7 +325,7 @@ export function SettingsScreen({}: Props) { showBackButton={isMobile} style={[ pal.border, - {borderBottomWidth: hairlineWidth}, + {borderBottomWidth: StyleSheet.hairlineWidth}, !isMobile && {borderLeftWidth: 1, borderRightWidth: 1}, ]}> <View style={{flex: 1}}> |