diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-07-25 20:45:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 20:45:15 +0100 |
commit | 401e92ed425db27b3904184c2cea148b19f9b7da (patch) | |
tree | dcd46e64c6ea9ed637fcc1e6415f16ae0da0137a /src/view/screens/Feeds.tsx | |
parent | 00240b95b90847f6691f7fa19c19f37d2ffc6624 (diff) | |
download | voidsky-401e92ed425db27b3904184c2cea148b19f9b7da.tar.zst |
Replace `import hairlineWidth =` with const (#4831)
* replace import with const * just use `StyleSheet.hairlineWidth` --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Diffstat (limited to 'src/view/screens/Feeds.tsx')
-rw-r--r-- | src/view/screens/Feeds.tsx | 11 |
1 files changed, 5 insertions, 6 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, |