diff --git a/src/components/StarterPack/ProfileStarterPacks.tsx b/src/components/StarterPack/ProfileStarterPacks.tsx index 58034f0d7f..7318267442 100644 --- a/src/components/StarterPack/ProfileStarterPacks.tsx +++ b/src/components/StarterPack/ProfileStarterPacks.tsx @@ -3,7 +3,6 @@ import { findNodeHandle, ListRenderItemInfo, StyleProp, - StyleSheet, View, ViewStyle, } from 'react-native' @@ -20,11 +19,11 @@ import {usePreferencesQuery} from '#/state/queries/preferences' import {RQKEY, useProfileFeedgensQuery} from '#/state/queries/profile-feedgens' import {usePalette} from 'lib/hooks/usePalette' import {FeedLoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' -import {FeedSourceCardLoaded} from 'view/com/feeds/FeedSourceCard' import {ErrorMessage} from 'view/com/util/error/ErrorMessage' import {List, ListRef} from 'view/com/util/List' import {LoadMoreRetryBtn} from 'view/com/util/LoadMoreRetryBtn' import {Text} from 'view/com/util/text/Text' +import {StarterPackCard} from '#/components/StarterPack/StarterPackCard' const LOADING = {_reactKey: '__loading__'} const EMPTY = {_reactKey: '__empty__'} @@ -157,16 +156,7 @@ export const ProfileStarterPacks = React.forwardRef< return } if (preferences) { - return ( - - ) + return } return null }, @@ -201,9 +191,3 @@ export const ProfileStarterPacks = React.forwardRef< ) }) - -const styles = StyleSheet.create({ - item: { - paddingHorizontal: 18, - }, -}) diff --git a/src/components/StarterPack/StarterPackCard.tsx b/src/components/StarterPack/StarterPackCard.tsx index 90cbb71d62..cc7c0bb9fb 100644 --- a/src/components/StarterPack/StarterPackCard.tsx +++ b/src/components/StarterPack/StarterPackCard.tsx @@ -1,12 +1,14 @@ import React from 'react' import {View} from 'react-native' -import {atoms as a} from '#/alf' +import {atoms as a, useTheme} from '#/alf' import {Text} from '#/components/Typography' -export function StarterPackCard() { +export function StarterPackCard({hideTopBorder}: {hideTopBorder?: boolean}) { + const t = useTheme() + return ( - + Hello! )