1
0
mirror of https://github.com/tooot-app/app synced 2024-12-22 07:34:06 +01:00
This commit is contained in:
xmflsct 2022-12-08 00:19:22 +01:00
parent 3e081ab377
commit d6b3eabb18

View File

@ -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)