Skip to content

Commit

Permalink
see if this can be built
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Feb 21, 2024
1 parent f3c37d9 commit 80c2909
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 15 deletions.
69 changes: 69 additions & 0 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"react": "^18.2.0",
"react-chartjs-2": "^5.2.0",
"react-confirm-alert": "^3.0.6",
"react-datepicker": "^5.0.0",
"react-dom": "^18.2.0",
"react-tooltip": "^5.26.3",
"unplugin-icons": "^0.18.5",
Expand Down
19 changes: 4 additions & 15 deletions website/src/components/DataUploadForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CircularProgress, TextField } from '@mui/material';
import { DatePicker } from '@mui/x-date-pickers';
import "react-datepicker/dist/react-datepicker.css";
import DatePicker from "react-datepicker";

Check failure on line 3 in website/src/components/DataUploadForm.tsx

View workflow job for this annotation

GitHub Actions / Check format

`react-datepicker` import should occur after import of `react`
import { isErrorFromAlias } from '@zodios/core';
import type { AxiosError } from 'axios';
import { type DateTime } from 'luxon';
Expand All @@ -24,6 +25,7 @@ import { stringifyMaybeAxiosError } from '../utils/stringifyMaybeAxiosError.ts';
import PhDnaLight from '~icons/ph/dna-light';

Check failure on line 25 in website/src/components/DataUploadForm.tsx

View workflow job for this annotation

GitHub Actions / Check format

`~icons/ph/dna-light` import should occur after import of `~icons/material-symbols/info-outline`
import MaterialSymbolsLightDataTableOutline from '~icons/material-symbols-light/data-table-outline';

Check failure on line 26 in website/src/components/DataUploadForm.tsx

View workflow job for this annotation

GitHub Actions / Check format

`~icons/material-symbols-light/data-table-outline` import should occur after import of `~icons/material-symbols/info-outline`
import MaterialSymbolsInfoOutline from '~icons/material-symbols/info-outline';

type Action = 'submit' | 'revise';

type DataUploadFormProps = {
Expand Down Expand Up @@ -256,20 +258,7 @@ const InnerDataUploadForm = ({
<div className='fixed inset-0 bg-gray-900 bg-opacity-75 flex justify-center items-center z-50'>
<div className='bg-white p-6 rounded-lg'>
<h2 className='font-medium text-lg'>Change date until which sequences are restricted</h2>
<DatePicker
format='yyyy-MM-dd'
value={restrictedUntil}
label='Restricted Until'
minDate={dateTimeInMonths(0)}
maxDate={dateTimeInMonths(12)}
slotProps={{
textField: {
size: 'small',
margin: 'dense',
},
}}
onChange={(date: DateTime | null) => (date !== null ? setRestrictedUntil(date) : null)}
/>
<DatePicker selected={startdate} onChange={(date) => setStartDate(date)} />
<div className='flex justify-end gap-4 mt-4'>
<button
className='px-4 py-2 btn normal-case'
Expand Down

0 comments on commit 80c2909

Please sign in to comment.