diff --git a/src/components/Reports/LostTime/AddLostTime.jsx b/src/components/Reports/LostTime/AddLostTime.jsx index aac0879ace..95be9eba94 100644 --- a/src/components/Reports/LostTime/AddLostTime.jsx +++ b/src/components/Reports/LostTime/AddLostTime.jsx @@ -3,7 +3,7 @@ import { useDispatch, connect, useSelector } from 'react-redux'; import MemberAutoComplete from '~/components/Teams/MembersAutoComplete'; import AddProjectsAutoComplete from '~/components/UserProfile/TeamsAndProjects/AddProjectsAutoComplete'; import AddTeamsAutoComplete from '~/components/UserProfile/TeamsAndProjects/AddTeamsAutoComplete'; -import "../reportsPage.css"; +import '../index.css'; import { Editor } from '@tinymce/tinymce-react'; import moment from 'moment-timezone'; import { Button, Col, Form, FormGroup, Input, Label, Modal, ModalBody, ModalFooter, ModalHeader, Row } from 'reactstrap'; diff --git a/src/components/Reports/PeopleTableDetails.jsx b/src/components/Reports/PeopleTableDetails.jsx index 2a42f8209c..2d7af8b3c0 100644 --- a/src/components/Reports/PeopleTableDetails.jsx +++ b/src/components/Reports/PeopleTableDetails.jsx @@ -1,7 +1,7 @@ import { useState, useEffect } from 'react'; import 'reactjs-popup/dist/index.css'; import { Container } from 'reactstrap'; -import './PeopleTableDetails.module.css'; +import styles from './PeopleTableDetails.module.css'; import NewModal from '../common/NewModal'; import TableFilter from './TableFilter/TableFilter'; @@ -145,61 +145,61 @@ function PeopleTableDetails(props) { const renderMobileFilteredTask = (value) => { return ( -
+
-
+
-
+
{value.taskName}
-
+
{value.status}
-
-
-
Priority
-
{value.priority}
+
+
+
Priority
+
{value.priority}
-
-
Resources
+
+
Resources
{value.resources?.map(res => res.map((resource, index) => { if (index < 2) { return ( - {resource.name} - ); - } - return null; - }), - )}
+ {resource.name} + ); + } + return null; + }), + )}
-
-
Active
+
+
Active
{value.active === 'Yes' ? : }
-
-
Assign
+
+
Assign
{value.assign === 'Yes' ? : }
-
-
Estimated Hours
+
+
Estimated Hours
{value.estimatedHours}
-
-
Start Date
+
+
Start Date
{value.startDate}
-
-
End Date
+
+
End Date
{value.endDate}
@@ -210,8 +210,8 @@ function PeopleTableDetails(props) { const renderFilteredTask = value => (
-
-
{value.taskName}
+
+
{value.taskName}
{value.priority}
{value.status}
@@ -223,7 +223,7 @@ function PeopleTableDetails(props) { key={`${value._id}-${resource.name}`} alt={resource.name} src={resource.profilePic || '/pfp-default.png'} - className="img-circle" + className={styles['img-circle']} title={resource.name} /> ); @@ -236,15 +236,15 @@ function PeopleTableDetails(props) { ) : null, )} -
-
+
+
{value.resources?.map(res => // eslint-disable-next-line array-callback-return,consistent-return res.map((resource, index) => { @@ -254,7 +254,7 @@ function PeopleTableDetails(props) { key={resource.index} alt={resource.name} src={resource.profilePic || '/pfp-default.png'} - className="img-circle" + className={styles['img-circle']} title={resource.name} /> ); @@ -265,15 +265,15 @@ function PeopleTableDetails(props) {
-
+
{value.active === 'Yes' ? : }
-
+
{value.assign === 'Yes' ? : }
-
{value.estimatedHours}
-
{value.startDate}
-
{value.endDate}
+
{value.estimatedHours}
+
{value.startDate}
+
{value.endDate}
); @@ -285,17 +285,17 @@ function PeopleTableDetails(props) { const renderModalContent = (value) => (
Why This Task is important
-