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