diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index f1a0024..2913c2c 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -7,6 +7,7 @@ import { useParams } from 'react-router-dom'; import '../../assets/css/customscroll.css' import moment from 'moment'; import { renderFormatRupiah } from '../../const/CustomFunc'; +import { BASE_OSPRO } from '../../const/ApiConst'; const styles = { cardContainer: { backgroundColor: '#F8F8F8', margin: 2, paddingLeft: 20, paddingRight: 20, paddingTop: 10 }, @@ -30,7 +31,8 @@ const DashboardProject = () => { } } const { PROJECT_ID, GANTT_ID } = useParams(); - const URL_GANTT = `http://103.73.125.81:8446/index.html?base_url=http://103.73.125.81:8444/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`; + // const URL_GANTT = `http://103.73.125.81:8446/index.html?base_url=http://103.73.125.81:8444/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`; + const URL_GANTT = `http://103.73.125.81:8446/index.html?base_url=${BASE_OSPRO}/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`; const mapRef = useRef() const [projectName, setProjectName] = useState("Project Tower ABC"); const [projectManagerName, setProjectManagerName] = useState("John Doe");