Remove circle icons
This commit is contained in:
@@ -67,10 +67,7 @@ import {
|
|||||||
} from 'view/com/util/LoadingPlaceholder'
|
} from 'view/com/util/LoadingPlaceholder'
|
||||||
import {atoms as a, useTheme as useThemeNew} from '#/alf'
|
import {atoms as a, useTheme as useThemeNew} from '#/alf'
|
||||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||||
import {IconCircle} from '#/components/IconCircle'
|
|
||||||
import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo'
|
import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo'
|
||||||
import {Props as SVGIconProps} from '#/components/icons/common'
|
|
||||||
import {ListSparkle_Stroke2_Corner0_Rounded as ListSparkle} from '#/components/icons/ListSparkle'
|
|
||||||
import {Menu_Stroke2_Corner0_Rounded as Menu} from '#/components/icons/Menu'
|
import {Menu_Stroke2_Corner0_Rounded as Menu} from '#/components/icons/Menu'
|
||||||
import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus'
|
import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus'
|
||||||
import {Loader as LoaderIcon} from '#/components/Loader'
|
import {Loader as LoaderIcon} from '#/components/Loader'
|
||||||
@@ -140,11 +137,9 @@ function EmptyState({message, error}: {message: string; error?: string}) {
|
|||||||
function SuggestedItemsHeader({
|
function SuggestedItemsHeader({
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
icon,
|
|
||||||
}: {
|
}: {
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
icon: React.ComponentType<SVGIconProps>
|
|
||||||
}) {
|
}) {
|
||||||
const t = useThemeNew()
|
const t = useThemeNew()
|
||||||
|
|
||||||
@@ -154,7 +149,7 @@ function SuggestedItemsHeader({
|
|||||||
isWeb
|
isWeb
|
||||||
? [
|
? [
|
||||||
a.flex_row,
|
a.flex_row,
|
||||||
a.px_md,
|
a.px_lg,
|
||||||
a.py_lg,
|
a.py_lg,
|
||||||
a.gap_md,
|
a.gap_md,
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
@@ -166,7 +161,6 @@ function SuggestedItemsHeader({
|
|||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
]
|
]
|
||||||
}>
|
}>
|
||||||
<IconCircle icon={icon} size="lg" />
|
|
||||||
<View style={[a.flex_1, a.gap_xs]}>
|
<View style={[a.flex_1, a.gap_xs]}>
|
||||||
<Text style={[a.flex_1, a.text_2xl, a.font_bold, t.atoms.text]}>
|
<Text style={[a.flex_1, a.text_2xl, a.font_bold, t.atoms.text]}>
|
||||||
{title}
|
{title}
|
||||||
@@ -183,7 +177,6 @@ type ExploreScreenItems =
|
|||||||
key: string
|
key: string
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
icon: React.ComponentType<SVGIconProps>
|
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
type: 'profile'
|
type: 'profile'
|
||||||
@@ -276,7 +269,6 @@ function ExploreScreen() {
|
|||||||
key: 'suggested-follows-header',
|
key: 'suggested-follows-header',
|
||||||
title: _(msg`Suggested follows`),
|
title: _(msg`Suggested follows`),
|
||||||
description: _(msg`Find new friends or interesting accounts`),
|
description: _(msg`Find new friends or interesting accounts`),
|
||||||
icon: ListSparkle,
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -321,7 +313,6 @@ function ExploreScreen() {
|
|||||||
key: 'suggested-feeds-header',
|
key: 'suggested-feeds-header',
|
||||||
title: _(msg`Suggested feeds`),
|
title: _(msg`Suggested feeds`),
|
||||||
description: _(msg`Discover new content`),
|
description: _(msg`Discover new content`),
|
||||||
icon: ListSparkle,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if (feeds && preferences) {
|
if (feeds && preferences) {
|
||||||
@@ -423,7 +414,6 @@ function ExploreScreen() {
|
|||||||
<SuggestedItemsHeader
|
<SuggestedItemsHeader
|
||||||
title={item.title}
|
title={item.title}
|
||||||
description={item.description}
|
description={item.description}
|
||||||
icon={item.icon}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -451,7 +441,6 @@ function ExploreScreen() {
|
|||||||
a.flex_row,
|
a.flex_row,
|
||||||
a.justify_center,
|
a.justify_center,
|
||||||
a.border_t,
|
a.border_t,
|
||||||
a.border_b,
|
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
]}>
|
]}>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user