From 20add279d90a974b033aa3ef327882130683d02b Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 18 Dec 2024 13:42:52 +0000 Subject: [PATCH 1/5] rm subtitle, add admonition --- src/view/com/lists/MyLists.tsx | 33 +++++++++++++++++++------ src/view/com/lists/ProfileLists.tsx | 2 +- src/view/screens/Lists.tsx | 3 --- src/view/screens/ModerationModlists.tsx | 5 ---- 4 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/view/com/lists/MyLists.tsx b/src/view/com/lists/MyLists.tsx index 17327fd9ae..1dc13a7230 100644 --- a/src/view/com/lists/MyLists.tsx +++ b/src/view/com/lists/MyLists.tsx @@ -8,7 +8,7 @@ import { ViewStyle, } from 'react-native' import {AppBskyGraphDefs as GraphDefs} from '@atproto/api' -import {msg} from '@lingui/macro' +import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {usePalette} from '#/lib/hooks/usePalette' @@ -19,6 +19,7 @@ import {useModerationOpts} from '#/state/preferences/moderation-opts' import {MyListsFilter, useMyListsQuery} from '#/state/queries/my-lists' import {EmptyState} from '#/view/com/util/EmptyState' import {atoms as a, useTheme} from '#/alf' +import {Admonition} from '#/components/Admonition' import * as ListCard from '#/components/ListCard' import {ErrorMessage} from '../util/error/ErrorMessage' import {List} from '../util/List' @@ -84,11 +85,29 @@ export function MyLists({ ({item, index}: {item: any; index: number}) => { if (item === EMPTY) { return ( - + + + {filter === 'curate' && ( + + + You can make lists of users, which can be used to drive feeds. + Lists are public and shareable. + + + )} + {filter === 'mod' && ( + + + You can make lists of users to mute or block in bulk. + Moderation lists are public and shareable. + + + )} + ) } else if (item === ERROR_ITEM) { return ( @@ -118,7 +137,7 @@ export function MyLists({ ) }, - [renderItem, t.atoms.border_contrast_low, _, error, onRefresh], + [renderItem, t.atoms.border_contrast_low, _, error, onRefresh, filter], ) if (inline) { diff --git a/src/view/com/lists/ProfileLists.tsx b/src/view/com/lists/ProfileLists.tsx index 2f63fd172b..07b729c8ed 100644 --- a/src/view/com/lists/ProfileLists.tsx +++ b/src/view/com/lists/ProfileLists.tsx @@ -136,7 +136,7 @@ export const ProfileLists = React.forwardRef( return ( ) diff --git a/src/view/screens/Lists.tsx b/src/view/screens/Lists.tsx index 99abf06039..300153966d 100644 --- a/src/view/screens/Lists.tsx +++ b/src/view/screens/Lists.tsx @@ -61,9 +61,6 @@ export function ListsScreen({}: Props) { Lists - - Public, shareable lists which can drive feeds. -