-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* check * New component * New component * new line --------- Co-authored-by: AmmarMohib <[email protected]>
- Loading branch information
1 parent
0d16149
commit aa4fff5
Showing
7 changed files
with
557 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
import React, { useState, useEffect, useRef } from 'react'; | ||
import { | ||
Autocomplete, | ||
TextField | ||
TextField, | ||
} from '@mui/material'; | ||
// import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; | ||
import Link from 'next/link'; | ||
|
||
import MultiSelectChipDropDown from './MultiSelectChipDropDown'; | ||
|
||
import styles from './style.module.css'; | ||
// import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; | ||
// import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; | ||
// const currentDate = new Date(); | ||
// 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 { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; | ||
|
||
const currentDate = new Date(); | ||
// import {DateTimePickerProps, InputProps } from '@mui/lab'; | ||
|
||
import dayjs, { Dayjs } from 'dayjs'; | ||
|
||
interface ListProps { | ||
email?: any | ||
|
@@ -57,6 +67,7 @@ const List: React.FC<ListProps> = ({ | |
const [status, setStatus] = useState<Boolean>(false); | ||
const [signedInUserData, setSignedInUserData] = useState<any>(null); | ||
const [isSignedIn, setIsSignedIn] = useState<Boolean>(false); | ||
const [value, setValue] = React.useState<Dayjs | null>(dayjs('2022-04-17T15:30')); | ||
|
||
useEffect(() => { | ||
|
||
|
@@ -281,6 +292,10 @@ const List: React.FC<ListProps> = ({ | |
</tr> | ||
) : ( | ||
projectTasks.map((v: any, j: any) => { | ||
function dayjs(arg0: string): any { | ||
throw new Error('Function not implemented.'); | ||
} | ||
|
||
return <tr className={`${(projects.CurrentStageCurrentTask == v.taskName) && (`text-danger`)} ${(expandDetailsTable == i) && (styles.hideDetails)}`} key={j}> | ||
{(v.taskSection == s) ? ( | ||
<> | ||
|
@@ -302,6 +317,7 @@ const List: React.FC<ListProps> = ({ | |
style={{ paddingLeft: 10, paddingRight: 10, paddingTop: 2, paddingBottom: 2 }} | ||
> | ||
{v.taskName} | ||
|
||
</span> | ||
</th> | ||
{(v.taskAssignee == "") ? ( | ||
|
@@ -312,8 +328,7 @@ const List: React.FC<ListProps> = ({ | |
<MultiSelectChipDropDown | ||
// optionsArray={projectDetails.ProjectMembers} | ||
// taskAssignee={v.taskAssignee} | ||
|
||
placeholder="[email protected] , [email protected]" | ||
placeholder="" | ||
options={projectDetails.ProjectMembers} | ||
selectedArrayList={selectedMembers} | ||
setSelectedArrayList={setSelectedMembers} | ||
|
@@ -322,8 +337,48 @@ const List: React.FC<ListProps> = ({ | |
/> | ||
</td> | ||
)} | ||
|
||
<td>{v.taskDue}</td> | ||
<td> | ||
{/* <DateTimePicker | ||
label="Uncontrolled picker" | ||
defaultValue={value} | ||
/> */} | ||
<LocalizationProvider dateAdapter={AdapterDayjs}> | ||
{/* <DemoContainer components={['DateTimePicker', 'DateTimePicker']}> */} | ||
{/* <DateTimePicker | ||
label="Uncontrolled picker" | ||
defaultValue={dayjs('2022-04-17T15:30')} | ||
/> */} | ||
<DateTimePicker | ||
|
||
label="" | ||
value={value} | ||
onChange={(newValue) => setValue(newValue)} | ||
/> | ||
{/* </DemoContainer> */} | ||
</LocalizationProvider> | ||
</td> | ||
{/* <td> */} | ||
{/* <DateTimePicker | ||
label="Uncontrolled picker" | ||
defaultValue={dayjs('2022-04-17T15:30')} | ||
// label="Controlled picker" | ||
// value={value} | ||
// onChange={(newValue) => setValue(newValue)} | ||
/> */} | ||
{/* <LocalizationProvider dateAdapter={AdapterDayjs}> | ||
{/* <DemoContainer components={['DateTimePicker', 'DateTimePicker']}> */} | ||
{/* <DateTimePicker */} | ||
{/* // label="Uncontrolled picker" */} | ||
{/* // defaultValue={dayjs('2022-04-17T15:30')} */} | ||
{/* // /> */} | ||
{/* <DateTimePicker */} | ||
{/* // label="Controlled picker" */} | ||
{/* // value={value} */} | ||
{/* // onChange={(newValue) => setValue(newValue)} */} | ||
{/* // /> */} | ||
{/* </DemoContainer> */} | ||
{/* </LocalizationProvider> */} | ||
{/* </td> */} | ||
{(v.taskPriority == "High") ? ( | ||
<td style={{ paddingTop: -20 }}><button type="button" className="btn btn-danger btn-rounded btn-sm">{v.taskPriority}</button></td> | ||
) : (v.taskPriority == "Medium") ? ( | ||
|
@@ -383,4 +438,5 @@ const List: React.FC<ListProps> = ({ | |
</div> | ||
) | ||
} | ||
|
||
export default List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ const nextConfig = { | |
}, | ||
}; | ||
|
||
|
||
module.exports = nextConfig; |
Oops, something went wrong.
aa4fff5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
fyp-project-management-software – ./
fyp-project-management-software.vercel.app
fyp-project-management-software-topideas.vercel.app
www.taskencher.com
fyp-project-management-software-git-main-topideas.vercel.app
taskencher.com