diff --git a/src/view/com/posts/Feed.tsx b/src/view/com/posts/Feed.tsx index 9affd40782..e087022031 100644 --- a/src/view/com/posts/Feed.tsx +++ b/src/view/com/posts/Feed.tsx @@ -12,7 +12,7 @@ import {EmptyState} from '../util/EmptyState' import {ErrorMessage} from '../util/error/ErrorMessage' import {FeedModel} from '../../../state/models/feed-view' import {FeedItem} from './FeedItem' -import {ComposePrompt} from '../composer/Prompt' +import {PromptButtons} from './PromptButtons' import {OnScrollCb} from '../../lib/hooks/useOnMainScroll' const COMPOSE_PROMPT_ITEM = {_reactKey: '__prompt__'} @@ -41,7 +41,7 @@ export const Feed = observer(function Feed({ // like PureComponent, shouldComponentUpdate, etc const renderItem = ({item}: {item: any}) => { if (item === COMPOSE_PROMPT_ITEM) { - return + return } else if (item === EMPTY_FEED_ITEM) { return ( void +}) { + const pal = usePalette('default') + return ( + + onPressCompose(false)}> + + New post + + + onPressCompose(true)}> + + Share photo + + + + ) +} + +const styles = StyleSheet.create({ + container: { + paddingVertical: 12, + paddingBottom: 10, + paddingHorizontal: 16, + flexDirection: 'row', + alignItems: 'center', + borderTopWidth: 1, + }, + btn: { + paddingVertical: 6, + paddingHorizontal: 14, + borderRadius: 30, + marginRight: 10, + }, +}) diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx index 07f7bc22f0..230273709d 100644 --- a/src/view/com/util/ViewHeader.tsx +++ b/src/view/com/util/ViewHeader.tsx @@ -135,8 +135,15 @@ const styles = StyleSheet.create({ fontWeight: 'normal', }, - backIcon: {width: 30, height: 30}, - backIconWide: {width: 40, height: 30}, + backIcon: { + width: 30, + height: 30, + }, + backIconWide: { + width: 40, + height: 30, + marginLeft: 6, + }, btn: { flexDirection: 'row', alignItems: 'center',