Skip to content

Commit

Permalink
calendar appears on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
IFarmYouEat committed Feb 26, 2024
1 parent a95f3dc commit ed5b9b2
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 4 deletions.
104 changes: 104 additions & 0 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
"node": "18.x"
},
"dependencies": {
"@date-io/date-fns": "^3.0.0",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@fontsource/roboto": "^5.0.8",
"@mailchimp/mailchimp_transactional": "^1.0.57",
"@mui/icons-material": "^5.15.10",
"@mui/material": "^5.15.11",
"@mui/x-date-pickers": "^6.19.5",
"axios": "^1.6.2",
"bcryptjs": "^2.4.3",
"cookie-session": "^2.0.0",
"date-fns": "^3.3.1",
"dayjs": "^1.11.10",
"dotenv": "^16.0.3",
"express": "^4.17.1",
"i18next": "^23.8.2",
Expand Down
14 changes: 10 additions & 4 deletions src/components/AdminProjectModal/AdminProjectModal.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import React, { useState, useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { Stack, Select, MenuItem, TextField, FormControl, InputLabel, Button, TableContainer, Paper, Table, TableCell, TableRow, TableHead, TableBody, IconButton } from '@mui/material';
import { Stack, Select, MenuItem, TextField, FormControl, InputLabel} from '@mui/material';
import dayjs, { Dayjs } from 'dayjs';
import { DemoContainer } from '@mui/x-date-pickers/internals/demo';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { DatePicker } from '@mui/x-date-pickers/DatePicker';

function AdminProjectModal({ closeModal, defaultValues }) {

Expand Down Expand Up @@ -71,12 +76,13 @@ function AdminProjectModal({ closeModal, defaultValues }) {
value={project.duration}
onChange={(event) => handleChangeFor("duration", event.target.value)}
/>
<TextField
label="due_at"
sx={{ width: '400px', margin: '20px 0' }}
<LocalizationProvider dateAdapter={AdapterDayjs}>
<DatePicker
label="Due Date"
value={project.due_at}
onChange={(event) => handleChangeFor("due_at", event.target.value)}
/>
</LocalizationProvider>
<FormControl sx={{ width: '400px', margin: '20px 0' }}>
<InputLabel id="select-from-language">From Language</InputLabel>
<Select
Expand Down

0 comments on commit ed5b9b2

Please sign in to comment.