@@ -4,12 +4,12 @@ import moment from 'moment'
4
4
import CustomPieGraph from './CustomPieGraph'
5
5
import DatePicker from 'react-datepicker'
6
6
import 'react-datepicker/dist/react-datepicker.css'
7
- import GluuLoader from '../../../../app/routes/ Apps/Gluu/GluuLoader'
8
- import GluuViewWrapper from '../../../../app/routes/ Apps/Gluu/GluuViewWrapper'
9
- import { getMau } from './. ./../redux/actions/MauActions'
10
- import applicationstyle from '../../../../app/routes/ Apps/Gluu/styles/applicationstyle'
11
- import GluuLabel from '../../../../app/routes/ Apps/Gluu/GluuLabel'
12
- import GluuRibbon from '../../../../app/routes/ Apps/Gluu/GluuRibbon'
7
+ import GluuLoader from '../Apps/Gluu/GluuLoader'
8
+ import GluuViewWrapper from '../Apps/Gluu/GluuViewWrapper'
9
+ import { getMau } from '../../redux/actions/MauActions'
10
+ import applicationstyle from '../Apps/Gluu/styles/applicationstyle'
11
+ import GluuLabel from '../Apps/Gluu/GluuLabel'
12
+ import GluuRibbon from '../Apps/Gluu/GluuRibbon'
13
13
import {
14
14
Button ,
15
15
Card ,
@@ -18,13 +18,13 @@ import {
18
18
FormGroup ,
19
19
Col ,
20
20
Row ,
21
- } from '../../../../ app/components'
21
+ } from '../../../app/components'
22
22
import {
23
23
hasBoth ,
24
24
buildPayload ,
25
25
STAT_READ ,
26
26
STAT_JANS_READ ,
27
- } from '../../../../app/ utils/PermChecker'
27
+ } from '../../utils/PermChecker'
28
28
import {
29
29
LineChart ,
30
30
XAxis ,
@@ -38,8 +38,7 @@ import {
38
38
import { useTranslation } from 'react-i18next'
39
39
import { connect } from 'react-redux'
40
40
41
- function ActiveUsers ( { statData, permissions, loading, dispatch } ) {
42
- //console.log('=====================>' + JSON.stringify(statData))
41
+ function DashboardPage ( { statData, permissions, loading, dispatch } ) {
43
42
statData . push ( { month : 202201 , mau : 5 , cc_at : 68 , ac_at : 785 , ac_id : 567 } )
44
43
const { t } = useTranslation ( )
45
44
const [ startDate , setStartDate ] = useState ( subMonths ( new Date ( ) , 2 ) )
@@ -234,11 +233,13 @@ function ActiveUsers({ statData, permissions, loading, dispatch }) {
234
233
</ GluuLoader >
235
234
)
236
235
}
236
+
237
237
const mapStateToProps = ( state ) => {
238
238
return {
239
239
statData : state . mauReducer . stat ,
240
240
loading : state . mauReducer . loading ,
241
241
permissions : state . authReducer . permissions ,
242
242
}
243
243
}
244
- export default connect ( mapStateToProps ) ( ActiveUsers )
244
+
245
+ export default connect ( mapStateToProps ) ( DashboardPage )
0 commit comments