mirror of
https://github.com/tooot-app/app
synced 2025-03-10 00:20:11 +01:00
Clarify my own boosts
This commit is contained in:
parent
7c7c96bc42
commit
e225c5b6bf
@ -3,6 +3,7 @@ import { ParseEmojis } from '@components/Parse'
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
import { StackNavigationProp } from '@react-navigation/stack'
|
||||
import { TabLocalStackParamList } from '@utils/navigation/navigators'
|
||||
import { getAccountStorage } from '@utils/storage/actions'
|
||||
import { StyleConstants } from '@utils/styles/constants'
|
||||
import { useTheme } from '@utils/styles/ThemeManager'
|
||||
import React, { useContext } from 'react'
|
||||
@ -37,8 +38,7 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
|
||||
/>
|
||||
)
|
||||
|
||||
const onPress = () =>
|
||||
navigation.push('Tab-Shared-Account', { account })
|
||||
const onPress = () => navigation.push('Tab-Shared-Account', { account })
|
||||
|
||||
const children = () => {
|
||||
switch (action) {
|
||||
@ -109,6 +109,7 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
|
||||
</>
|
||||
)
|
||||
case 'reblog':
|
||||
const myself = rest.rootStatus?.account.id === getAccountStorage.string('auth.account.id')
|
||||
return (
|
||||
<>
|
||||
<Icon
|
||||
@ -121,6 +122,8 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
|
||||
{content(
|
||||
isNotification
|
||||
? t('shared.actioned.reblog.notification', { name })
|
||||
: myself
|
||||
? t('shared.actioned.reblog.myself')
|
||||
: t('shared.actioned.reblog.default', { name })
|
||||
)}
|
||||
</Pressable>
|
||||
|
@ -33,6 +33,7 @@
|
||||
"poll": "A poll you have voted in has ended",
|
||||
"reblog": {
|
||||
"default": "{{name}} boosted",
|
||||
"myself": "I boosted",
|
||||
"notification": "{{name}} boosted your toot"
|
||||
},
|
||||
"update": "Reblog has been edited",
|
||||
|
Loading…
x
Reference in New Issue
Block a user