mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
iOS almost working
This commit is contained in:
35
src/screens/Compose/Root/Header/PostingAs.tsx
Normal file
35
src/screens/Compose/Root/Header/PostingAs.tsx
Normal file
@ -0,0 +1,35 @@
|
||||
import { getLocalAccount, getLocalUri } from '@utils/slices/instancesSlice'
|
||||
import { StyleConstants } from '@utils/styles/constants'
|
||||
import { useTheme } from '@utils/styles/ThemeManager'
|
||||
import React from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { StyleSheet, Text } from 'react-native'
|
||||
import { useSelector } from 'react-redux'
|
||||
|
||||
const ComposePostingAs = React.memo(
|
||||
() => {
|
||||
const { t } = useTranslation('sharedCompose')
|
||||
const { theme } = useTheme()
|
||||
|
||||
const localAccount = useSelector(getLocalAccount)
|
||||
const localUri = useSelector(getLocalUri)
|
||||
|
||||
return (
|
||||
<Text style={[styles.text, { color: theme.secondary }]}>
|
||||
{t('content.root.header.postingAs', {
|
||||
acct: localAccount?.acct,
|
||||
domain: localUri
|
||||
})}
|
||||
</Text>
|
||||
)
|
||||
},
|
||||
() => true
|
||||
)
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
text: {
|
||||
...StyleConstants.FontStyle.S
|
||||
}
|
||||
})
|
||||
|
||||
export default ComposePostingAs
|
Reference in New Issue
Block a user