diff --git a/src/views/Dashboard/DashboardBOD.js b/src/views/Dashboard/DashboardBOD.js index 74e64d0..61742de 100644 --- a/src/views/Dashboard/DashboardBOD.js +++ b/src/views/Dashboard/DashboardBOD.js @@ -12,6 +12,7 @@ import ContentLoader from 'react-content-loader'; import toRupiah from '@develoka/angka-rupiah-js'; import Icon from '@iconify/react'; import { HealthByBudget, HealthBySchedule } from './Components'; +import { Link } from 'react-router-dom'; const DashboardBOD = (props) => { let role_id = '', user_id='',isLogin='',token=''; @@ -20,13 +21,11 @@ const DashboardBOD = (props) => { user_id = props.location.state.user_id; token = props.location.state.token; isLogin = props.location.state.isLogin; - console.log('props.location.state success'); } else { role_id = localStorage.getItem("role_id"); user_id = localStorage.getItem("user_id"); token = localStorage.getItem("token"); isLogin = localStorage.getItem("isLogin"); - console.error('undefined in props.location.state'); } const HEADER = { headers: { @@ -427,11 +426,20 @@ const DashboardBOD = (props) => {