mirror of
https://github.com/tooot-app/app
synced 2024-12-22 07:34:06 +01:00
Fix notification account info not shown
This commit is contained in:
parent
53b38004c3
commit
5338720106
@ -19,7 +19,7 @@ export interface Props {
|
||||
const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest }) => {
|
||||
const { status, reblogStatus } = useContext(StatusContext)
|
||||
const account = rest.account || (reblogStatus ? reblogStatus.account : status?.account)
|
||||
if (!status || !account) return null
|
||||
if (!account) return null
|
||||
|
||||
const { t } = useTranslation('componentTimeline')
|
||||
const { colors } = useTheme()
|
||||
|
@ -72,16 +72,18 @@ const SearchEmpty: React.FC<Props> = ({ isLoading, inputRef, setSearchTerm }) =>
|
||||
</CustomText>
|
||||
</View>
|
||||
|
||||
<CustomText
|
||||
style={{
|
||||
color: colors.primaryDefault,
|
||||
marginTop: StyleConstants.Spacing.M,
|
||||
paddingHorizontal: StyleConstants.Spacing.Global.PagePadding
|
||||
}}
|
||||
fontWeight='Bold'
|
||||
>
|
||||
{t('shared.search.empty.trending.tags')}
|
||||
</CustomText>
|
||||
{trendsTags.data?.length ? (
|
||||
<CustomText
|
||||
style={{
|
||||
color: colors.primaryDefault,
|
||||
marginTop: StyleConstants.Spacing.M,
|
||||
paddingHorizontal: StyleConstants.Spacing.Global.PagePadding
|
||||
}}
|
||||
fontWeight='Bold'
|
||||
>
|
||||
{t('shared.search.empty.trending.tags')}
|
||||
</CustomText>
|
||||
) : null}
|
||||
<View>
|
||||
{trendsTags.data?.map((tag, index) => {
|
||||
const hashtag = tag as Mastodon.Tag
|
||||
|
Loading…
Reference in New Issue
Block a user