Skip to content

Commit

Permalink
Add header section
Browse files Browse the repository at this point in the history
  • Loading branch information
samau3 committed Oct 22, 2024
1 parent 19355a1 commit f18079f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
35 changes: 30 additions & 5 deletions client/src/pages/patients/Patients.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
import { Table, Container, LoadingOverlay, Paper, Menu, ActionIcon, rem } from '@mantine/core';
import {
Table,
Container,
LoadingOverlay,
Paper,
Menu,
ActionIcon,
rem,
Button,
Group,
TextInput,
Divider,
} from '@mantine/core';
import { useQuery } from '@tanstack/react-query';
import { useState } from 'react';
import { StatusCodes } from 'http-status-codes';
import {IconDotsVertical} from '@tabler/icons-react';
import { IconDotsVertical, IconSearch } from '@tabler/icons-react';

import classes from './Patients.module.css';
import LifelineAPI from './LifelineAPI';
Expand All @@ -29,8 +41,19 @@ export default function Patients() {

return (
<Container>
<h1>Patients</h1>

<div className={classes.header}>
<p className={classes.title}>Patients</p>
<Group>
<TextInput
leftSectionPointerEvents="none"
leftSection={<IconSearch stroke={2} />}
placeholder="Search"
/>
<Button variant="default">Renewal Required</Button>
<Button variant="filled">Create Profile</Button>
</Group>
</div>
<Divider mb="xl" />
<LoadingOverlay
visible={isFetching}
zIndex={1000}
Expand Down Expand Up @@ -93,7 +116,9 @@ export default function Patients() {
<Menu>
<Menu.Target>
<ActionIcon variant="subtle" color="gray">
<IconDotsVertical style={{ width: rem(14), height: rem(14) }} />
<IconDotsVertical
style={{ width: rem(18), height: rem(18) }}
/>
</ActionIcon>
</Menu.Target>
<Menu.Dropdown>
Expand Down
12 changes: 12 additions & 0 deletions client/src/pages/patients/Patients.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@
border-radius: 12px;
overflow: hidden;
}

.header {
display: flex;
justify-content: space-between;
margin: 1rem 1rem;
}

.title {
font-weight: 600;
font-size: 1.25rem;
margin: 0 0.5rem 0 0;
}

0 comments on commit f18079f

Please sign in to comment.