Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
#33 styling chat
Browse files Browse the repository at this point in the history
  • Loading branch information
gkillick committed Mar 30, 2022
1 parent 43b5680 commit f748c1f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/chat/chatroom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React, { useEffect, useRef, useState } from 'react';

import { doc, onSnapshot, Timestamp } from 'firebase/firestore';
import { Avatar, Box } from '@mui/material';
import { Avatar, Box, Button, Grid, Typography } from '@mui/material';
import firebase from 'firebase/compat/app';
import SendIcon from '@mui/icons-material/Send';
import { firestore } from '../../config/firebase_config';
Expand Down Expand Up @@ -145,6 +145,21 @@ function Chat(props: PatientData) {

}}
>
<Box sx={{ padding: '20px', borderBottom: '1px solid #e7e7e7' }}>
<Grid
container
spacing={24}
justifyContent="space-between"
>
<Grid item>
<Typography variant="h6" component="div">Messages</Typography>
</Grid>
<Grid item>
<Button variant="contained" color="secondary">Book Appointment</Button>

</Grid>
</Grid>
</Box>

<ChatRoom {...props} />

Expand Down

0 comments on commit f748c1f

Please sign in to comment.