Better formatting

This commit is contained in:
Eric Bailey
2024-04-18 10:14:02 -05:00
parent 699ddc8de0
commit 9351281fd9
+10 -7
View File
@@ -173,6 +173,7 @@ export function ProfileFeedScreenInner({
'reduced_onboarding_and_home_algo', 'reduced_onboarding_and_home_algo',
) )
const primaryAlgoDialogControl = useDialogControl() const primaryAlgoDialogControl = useDialogControl()
const primaryAlgo = preferences.primaryAlgorithm
const { const {
mutateAsync: saveFeed, mutateAsync: saveFeed,
@@ -211,9 +212,9 @@ export function ProfileFeedScreenInner({
!unpinnedFeed && !unpinnedFeed &&
(!!pinnedFeed || preferences.feeds.pinned.includes(feedInfo.uri)) (!!pinnedFeed || preferences.feeds.pinned.includes(feedInfo.uri))
const isPrimaryAlgo = const isPrimaryAlgo =
(preferences.primaryAlgorithm?.enabled && (primaryAlgo?.enabled &&
preferences.primaryAlgorithm?.uri && primaryAlgo?.uri &&
preferences.primaryAlgorithm.uri === feedInfo.uri) || primaryAlgo.uri === feedInfo.uri) ||
(primaryAlgoVariables?.enabled && primaryAlgoVariables.uri === feedInfo.uri) (primaryAlgoVariables?.enabled && primaryAlgoVariables.uri === feedInfo.uri)
useSetTitle(feedInfo?.displayName) useSetTitle(feedInfo?.displayName)
@@ -326,9 +327,9 @@ export function ProfileFeedScreenInner({
} }
avatarType="algo"> avatarType="algo">
<View style={[a.flex_row, a.align_center, a.gap_sm]}> <View style={[a.flex_row, a.align_center, a.gap_sm]}>
{feedInfo && {feedInfo && hasSession && (
hasSession && <>
(isPrimaryAlgoExperimentEnabled && isPrimaryAlgo ? ( {isPrimaryAlgoExperimentEnabled && isPrimaryAlgo ? (
<NewButton <NewButton
variant="solid" variant="solid"
color="secondary" color="secondary"
@@ -357,7 +358,9 @@ export function ProfileFeedScreenInner({
{isPinned ? _(msg`Unpin`) : _(msg`Pin to Home`)} {isPinned ? _(msg`Unpin`) : _(msg`Pin to Home`)}
</ButtonText> </ButtonText>
</NewButton> </NewButton>
))} )}
</>
)}
<Menu.Root> <Menu.Root>
<Menu.Trigger label={_(msg`Open feed options menu`)}> <Menu.Trigger label={_(msg`Open feed options menu`)}>
{({props, state}) => { {({props, state}) => {