diff --git a/package.json b/package.json index 3bfb6da..bb4a5fa 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "react-router-dom": "^5.0.1", "react-select": "^4.3.1", "react-slick": "^0.28.1", + "react-tiny-fab": "^4.0.4", "react-toastify": "^5.5.0", "reactstrap": "^8.0.0", "simple-line-icons": "^2.4.1", diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index cb9b5ac..8fce181 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -12,6 +12,10 @@ import { SendOutlined } from '@ant-design/icons'; import { NotificationContainer, NotificationManager } from 'react-notifications'; import ContentLoader from 'react-content-loader'; import { BehindTaskItem, Comment, HealthByBudget, HealthBySchedule, ListLoader, PopupContent, ProgressActualBar, ProgressPlanningBar, SingleTextLoader } from './Components'; +import { Fab, Action } from 'react-tiny-fab'; +import 'react-tiny-fab/dist/styles.css'; +import { useHistory } from "react-router-dom"; + const { TextArea } = Input; const styles = { @@ -76,6 +80,7 @@ const DashboardProject = () => { const [healthBySchedule, setHealthBySchedule] = useState('-') const [healthByBudget, setHealthByBudget] = useState('-') const [reportDistribution, setReportDistribution] = useState([]); + let history = useHistory(); useEffect(() => { @@ -104,6 +109,10 @@ const DashboardProject = () => { }, [plannedCost, totalCost]); + const handleRedirect = () => { + history.push("/projects/"+GANTT_ID+"/"+PROJECT_ID+"/gantt"); + } + const getProjectDetail = async () => { setIsReadyProjectDetail(false); const URL = `${BASE_OSPRO}/api/project/detail/${PROJECT_ID}`; @@ -456,6 +465,17 @@ const DashboardProject = () => { return (