Skip to content

Commit

Permalink
onto styling
Browse files Browse the repository at this point in the history
  • Loading branch information
danchan020 committed Aug 3, 2022
1 parent 015ec42 commit b59a199
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/components/Conversation.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function Conversation({handleSignOut, conversations}) {
}
}, [id, messages])

if(conversations && user){
if(conversations.length > 0 && user){
const conversation = conversations.find((conversation) => conversation.id == id)

let userDisplayed
Expand Down Expand Up @@ -108,14 +108,14 @@ export default function Conversation({handleSignOut, conversations}) {
</Box>
{renderMessages}
<VStack>

<form onSubmit={handleSubmit}>

<FormControl onChange={handleChange}>
{/* <HStack> */}
<HStack>
<Input variant="filled" bg="tertiary" type="body" class="form-control" id="body" placeholder="Send message..." width={275}/>
<Button variant="solid" bg="secondary" type="submit" width={75} > send </Button>
{/* </HStack> */}
</HStack>
</FormControl>

</form>
Expand Down

0 comments on commit b59a199

Please sign in to comment.