mirror of
https://github.com/tooot-app/app
synced 2024-12-22 15:49:42 +01:00
Fixed #527
This commit is contained in:
parent
3e081ab377
commit
d6b3eabb18
@ -1,4 +1,5 @@
|
|||||||
import TimelineDefault from '@components/Timeline/Default'
|
import TimelineDefault from '@components/Timeline/Default'
|
||||||
|
import { StyleConstants } from '@utils/styles/constants'
|
||||||
import { useTheme } from '@utils/styles/ThemeManager'
|
import { useTheme } from '@utils/styles/ThemeManager'
|
||||||
import React, { useContext } from 'react'
|
import React, { useContext } from 'react'
|
||||||
import { StyleSheet, View } from 'react-native'
|
import { StyleSheet, View } from 'react-native'
|
||||||
@ -11,16 +12,24 @@ const ComposeReply: React.FC = () => {
|
|||||||
const { colors } = useTheme()
|
const { colors } = useTheme()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[styles.base, { borderTopColor: colors.border }]}>
|
<View
|
||||||
<TimelineDefault item={replyToStatus!} disableDetails disableOnPress />
|
style={{
|
||||||
|
flex: 1,
|
||||||
|
flexDirection: 'row',
|
||||||
|
minHeight: StyleConstants.Font.LineHeight.M * 5,
|
||||||
|
borderWidth: StyleSheet.hairlineWidth,
|
||||||
|
borderRadius: StyleConstants.Spacing.S,
|
||||||
|
overflow: 'hidden',
|
||||||
|
borderColor: colors.border,
|
||||||
|
marginHorizontal: StyleConstants.Spacing.Global.PagePadding,
|
||||||
|
marginTop: StyleConstants.Spacing.M
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{replyToStatus ? (
|
||||||
|
<TimelineDefault item={replyToStatus} disableDetails disableOnPress />
|
||||||
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
|
||||||
base: {
|
|
||||||
borderTopWidth: StyleSheet.hairlineWidth
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
export default React.memo(ComposeReply, () => true)
|
export default React.memo(ComposeReply, () => true)
|
||||||
|
Loading…
Reference in New Issue
Block a user