diff --git a/src/main/webui/src/ProposalEditorView/investigators/List.tsx b/src/main/webui/src/ProposalEditorView/investigators/List.tsx index e5b52244..ad991654 100644 --- a/src/main/webui/src/ProposalEditorView/investigators/List.tsx +++ b/src/main/webui/src/ProposalEditorView/investigators/List.tsx @@ -6,7 +6,7 @@ import { useInvestigatorResourceGetInvestigators, } from "src/generated/proposalToolComponents.ts"; import {useQueryClient} from "@tanstack/react-query"; -import {Box, Grid, Table, Text} from "@mantine/core"; +import {Box, Stack, Table, Text} from "@mantine/core"; import {modals} from "@mantine/modals"; import {randomId} from "@mantine/hooks"; import DeleteButton from "src/commonButtons/delete"; @@ -57,10 +57,7 @@ function InvestigatorsPanel(): ReactElement { return ( - - - + {data?.length === 0 ?
Please add an investigator
: isLoading ? (
Loading...
) : @@ -81,8 +78,9 @@ function InvestigatorsPanel(): ReactElement { } } -
-
+ +
); } diff --git a/src/main/webui/src/ProposalEditorView/investigators/New.tsx b/src/main/webui/src/ProposalEditorView/investigators/New.tsx index c9d694ec..17526e57 100644 --- a/src/main/webui/src/ProposalEditorView/investigators/New.tsx +++ b/src/main/webui/src/ProposalEditorView/investigators/New.tsx @@ -7,7 +7,7 @@ import { import {useNavigate, useParams} from "react-router-dom"; import {useQueryClient} from "@tanstack/react-query"; import {InvestigatorKind} from "src/generated/proposalToolSchemas.ts"; -import {Checkbox, Grid, Select, Stack} from "@mantine/core"; +import {Checkbox, Select, Stack} from "@mantine/core"; import {useForm} from "@mantine/form"; import {FormSubmitButton} from "src/commonButtons/save"; import DeleteButton from "src/commonButtons/delete"; @@ -124,20 +124,14 @@ function AddInvestigatorPanel(): ReactElement { data={searchData} {...form.getInputProps("selectedInvestigator")} /> - - - - - - - - + + diff --git a/src/main/webui/src/ProposalEditorView/proposal/Documents.tsx b/src/main/webui/src/ProposalEditorView/proposal/Documents.tsx index b40ddb3a..0f7d0e06 100644 --- a/src/main/webui/src/ProposalEditorView/proposal/Documents.tsx +++ b/src/main/webui/src/ProposalEditorView/proposal/Documents.tsx @@ -5,7 +5,7 @@ import { useSupportingDocumentResourceGetSupportingDocuments } from "src/generated/proposalToolComponents"; import {useParams} from "react-router-dom"; -import {Box, FileButton, Table, Text} from "@mantine/core"; +import {Box, FileButton, Stack, Table, Text} from "@mantine/core"; import {useState} from "react"; import {useQueryClient} from "@tanstack/react-query"; import {modals} from "@mantine/modals"; @@ -84,7 +84,7 @@ const DocumentsPanel = () => { return ( - + {isLoading ? ( @@ -106,15 +106,16 @@ const DocumentsPanel = () => { }
-
- Upload a document - - {(props) => } - - + + Upload a document + + {(props) => } + + +
); }; diff --git a/src/main/webui/src/ProposalEditorView/proposal/Submit.tsx b/src/main/webui/src/ProposalEditorView/proposal/Submit.tsx index ff2268cc..1866cb9c 100644 --- a/src/main/webui/src/ProposalEditorView/proposal/Submit.tsx +++ b/src/main/webui/src/ProposalEditorView/proposal/Submit.tsx @@ -1,5 +1,5 @@ import {ReactElement, useEffect, useState} from "react"; -import {Box, Select, Text} from "@mantine/core"; +import {Box, Select, Stack, Text} from "@mantine/core"; import { fetchProposalCyclesResourceGetProposalCycleDates, fetchSubmittedProposalResourceSubmitProposal, @@ -88,17 +88,19 @@ function SubmitPanel(): ReactElement {
- + Submission deadline {submissionDeadline} + + ) diff --git a/src/main/webui/src/ProposalEditorView/proposal/Summary.tsx b/src/main/webui/src/ProposalEditorView/proposal/Summary.tsx index 906bdf61..2757805e 100644 --- a/src/main/webui/src/ProposalEditorView/proposal/Summary.tsx +++ b/src/main/webui/src/ProposalEditorView/proposal/Summary.tsx @@ -6,7 +6,7 @@ import { } from "src/generated/proposalToolComponents"; import {useMutation, useQueryClient} from "@tanstack/react-query"; import {useParams} from "react-router-dom"; -import {Box, Textarea} from "@mantine/core"; +import {Box, Stack, Textarea} from "@mantine/core"; import {useForm} from "@mantine/form"; import {FormSubmitButton} from 'src/commonButtons/save'; import { @@ -93,12 +93,13 @@ function SummaryPanel() { Submitting request :
-