Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Show header shadow in chat screens (#3106)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Mar 29, 2023
1 parent f871a38 commit dc8d4f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/mobile/src/screens/chat-screen/ChatListScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ const useStyles = makeStyles(({ spacing, palette, typography }) => ({
},
writeMessageButton: {
marginTop: spacing(6)
},
shadow: {
borderBottomColor: palette.neutralLight6,
borderBottomWidth: 3,
borderBottomLeftRadius: 1
}
}))

Expand Down Expand Up @@ -118,6 +123,7 @@ export const ChatListScreen = () => {
topbarRight={iconCompose}
>
<ScreenContent>
<View style={styles.shadow} />
<View style={styles.rootContainer}>
{chatsStatus === Status.SUCCESS ? (
<FlatList
Expand Down
2 changes: 2 additions & 0 deletions packages/mobile/src/screens/chat-screen/ChatScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { Platform, View, Text, KeyboardAvoidingView } from 'react-native'
import { useDispatch, useSelector } from 'react-redux'

import IconKebabHorizontal from 'app/assets/images/iconKebabHorizontal.svg'
import IconMessage from 'app/assets/images/iconMessage.svg'
import IconSend from 'app/assets/images/iconSend.svg'
import type { FlatListT } from 'app/components/core'
import { TextInput, Screen, ScreenContent, FlatList } from 'app/components/core'
Expand Down Expand Up @@ -316,6 +317,7 @@ export const ChatScreen = () => {
)
: messages.title
}
icon={otherUser ? undefined : IconMessage}
topbarRight={topBarRight}
>
<ScreenContent>
Expand Down

0 comments on commit dc8d4f2

Please sign in to comment.