Skip to content

Commit

Permalink
feat: study-crud
Browse files Browse the repository at this point in the history
linting
  • Loading branch information
vuyaniShabangu committed Jul 26, 2024
1 parent 38612b5 commit 69873e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions components/AddStudy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ const AddStudy: FC = () => {
return (
<div>
<Toaster />
<Space
size={'small'}
direction={'horizontal'}
style={{ marginBottom: '1rem' }}
>
<Space size={'small'} direction={'horizontal'} style={{ marginBottom: '1rem' }}>
<Button type="primary" size="middle" onClick={handleOk}>
Add study
</Button>
Expand All @@ -83,7 +79,11 @@ const AddStudy: FC = () => {
name="Study"
rules={[{ required: true, message: 'Study ID is required' }]}
>
<Input value={study} onChange={(e) => setStudy(e.target.value)} placeholder="Study ID" />
<Input
value={study}
onChange={(e) => setStudy(e.target.value)}
placeholder="Study ID"
/>
</Form.Item>
<Form.Item
label="Description"
Expand Down
10 changes: 6 additions & 4 deletions components/StudiesTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ const Studies: FC<Props> = ({ isGroupMember }) => {
style={{ width: '100%' }}
loading={loading}
bordered
title={() => <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<Title level={5}>Studies</Title>
{isGroupMember && <AddStudy />}
</div>}
title={() => (
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<Title level={5}>Studies</Title>
{isGroupMember && <AddStudy />}
</div>
)}
/>
</div>
</>
Expand Down

0 comments on commit 69873e4

Please sign in to comment.