From 11c861d2d368ab59d8e65b216c1551729fc140ad Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 16 Jan 2023 17:37:18 -0600 Subject: [PATCH] Remove the avi from the compose prompt --- src/view/com/composer/Prompt.tsx | 32 ++++++--------------- src/view/com/post-thread/PostThreadItem.tsx | 2 +- src/view/com/posts/Feed.tsx | 4 ++- 3 files changed, 12 insertions(+), 26 deletions(-) diff --git a/src/view/com/composer/Prompt.tsx b/src/view/com/composer/Prompt.tsx index 319d57be..682a9990 100644 --- a/src/view/com/composer/Prompt.tsx +++ b/src/view/com/composer/Prompt.tsx @@ -1,46 +1,29 @@ import React from 'react' import {StyleSheet, TouchableOpacity, View} from 'react-native' -import {colors} from '../../lib/styles' -import {useStores} from '../../../state' -import {UserAvatar} from '../util/UserAvatar' import {Text} from '../util/text/Text' import {usePalette} from '../../lib/hooks/usePalette' export function ComposePrompt({ - noAvi = false, text = "What's up?", btn = 'Post', + isReply = false, onPressCompose, }: { - noAvi?: boolean text?: string btn?: string + isReply?: boolean onPressCompose: () => void }) { const pal = usePalette('default') - const store = useStores() - const onPressAvatar = () => { - store.nav.navigate(`/profile/${store.me.handle}`) - } return ( - {!noAvi ? ( - - - - ) : undefined} {text} @@ -57,14 +40,15 @@ export function ComposePrompt({ const styles = StyleSheet.create({ container: { - paddingHorizontal: 10, - paddingVertical: 10, + paddingLeft: 4, + paddingRight: 10, + paddingVertical: 14, flexDirection: 'row', alignItems: 'center', borderTopWidth: 1, }, - noAviContainer: { - paddingVertical: 14, + containerReply: { + paddingHorizontal: 10, }, avatar: { width: 50, diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index ec05f320..1764dc14 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -237,7 +237,7 @@ export const PostThreadItem = observer(function PostThreadItem({ { if (item === COMPOSE_PROMPT_ITEM) { - return + return ( + + ) } else if (item === EMPTY_FEED_ITEM) { return (