1
0
mirror of https://github.com/tooot-app/app synced 2024-12-22 15:49:42 +01:00

Fix notification account info not shown

This commit is contained in:
xmflsct 2022-12-05 21:30:19 +01:00
parent 53b38004c3
commit 5338720106
2 changed files with 13 additions and 11 deletions

View File

@ -19,7 +19,7 @@ export interface Props {
const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest }) => { const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest }) => {
const { status, reblogStatus } = useContext(StatusContext) const { status, reblogStatus } = useContext(StatusContext)
const account = rest.account || (reblogStatus ? reblogStatus.account : status?.account) const account = rest.account || (reblogStatus ? reblogStatus.account : status?.account)
if (!status || !account) return null if (!account) return null
const { t } = useTranslation('componentTimeline') const { t } = useTranslation('componentTimeline')
const { colors } = useTheme() const { colors } = useTheme()

View File

@ -72,6 +72,7 @@ const SearchEmpty: React.FC<Props> = ({ isLoading, inputRef, setSearchTerm }) =>
</CustomText> </CustomText>
</View> </View>
{trendsTags.data?.length ? (
<CustomText <CustomText
style={{ style={{
color: colors.primaryDefault, color: colors.primaryDefault,
@ -82,6 +83,7 @@ const SearchEmpty: React.FC<Props> = ({ isLoading, inputRef, setSearchTerm }) =>
> >
{t('shared.search.empty.trending.tags')} {t('shared.search.empty.trending.tags')}
</CustomText> </CustomText>
) : null}
<View> <View>
{trendsTags.data?.map((tag, index) => { {trendsTags.data?.map((tag, index) => {
const hashtag = tag as Mastodon.Tag const hashtag = tag as Mastodon.Tag