Skip to content

Commit

Permalink
improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert committed Oct 1, 2024
1 parent 74b63a0 commit 10a5491
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/AppBar/AppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const AppBar = ({ handleDrawerToggle, mobileOpen }) => {
{mobileOpen ? <CloseIcon /> : <MenuIcon />}
</IconButton>
<Typography variant="h6" noWrap component="div">
Prep Me up Before i GO GO
Prep Me Up Before I Go Go
</Typography>
<div className='UserSelector'>
<FormControl fullWidth>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/container/Meeting/Meeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const Meeting: React.FC = () => {
>
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }} className="MeetingHeader">
<Typography variant="h4" component="h1" sx={{ flexGrow: 1 }}>
Meeting: {meetingDetails ? meetingDetails.title : '. . .'}
{meetingDetails ? meetingDetails.title : 'Meeting: . . .'}
</Typography>
{isMobile && hasAgenda && (
<IconButton onClick={() => setIsAgendaDrawerOpen(true)}>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/container/MeetingNotes/MeetingNotes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function MeetingNotes() {
variant="h4"
gutterBottom
sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
Agenda for {meetingDetails?.title}
{meetingDetails?.title} Agenda
<Switch
onChange={() => setHideDoneFlag(!hideDoneFlag)}
checked={!hideDoneFlag}
Expand Down Expand Up @@ -149,7 +149,7 @@ export default function MeetingNotes() {
</List>
{
(notes.length > 0 && visibleNotes?.length === 0) &&
<Typography>
<Typography sx={{textAlign: 'center', padding: '16px'}}>
Done!
</Typography>
}
Expand Down
30 changes: 29 additions & 1 deletion frontend/src/container/PrepNow/PrepNow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ interface MeetingFormData {
description: string;
date: Date | null;
meeting_type: string;
purpose?: string;
context?: string;
}

const createMeeting = async (meetingData: MeetingFormData): Promise<any> => {
Expand All @@ -44,7 +46,7 @@ const createMeeting = async (meetingData: MeetingFormData): Promise<any> => {
export const PrepNow: React.FC = () => {
const nowIsh = new Date()
nowIsh.setMinutes(0)
nowIsh.setHours(nowIsh.getHours() + 1 )
nowIsh.setHours(nowIsh.getHours() + 1)

const [formData, setFormData] = useState<MeetingFormData>({
title: "",
Expand Down Expand Up @@ -165,6 +167,32 @@ export const PrepNow: React.FC = () => {
<MenuItem value="other">Other</MenuItem>
</Select>
</FormControl>
{formData.meeting_type === 'other' && (
<>
<TextField
fullWidth
label="Purpose"
name="purpose"
value={formData.purpose}
onChange={handleChange}
margin="normal"
multiline
rows={4}
/>

<TextField
fullWidth
label="Context"
name="context"
value={formData.context}
onChange={handleChange}
margin="normal"
multiline
rows={4}
/>

</>
)}
<Button
type="submit"
variant="contained"
Expand Down

0 comments on commit 10a5491

Please sign in to comment.