|
|
@@ -1,6 +1,6 @@
|
|
|
import React, { Component } from "react";
|
|
|
import ContentWrapper from "@/components/Layout/ContentWrapper";
|
|
|
-import { Card, CardBody, CardHeader, CardTitle, Button } from "reactstrap";
|
|
|
+import { Card, CardBody, CardHeader, CardTitle, Button, Row, Col } from "reactstrap";
|
|
|
import { getPelaporan, addStatus, removeLaporan, activeLaporan, changeRoleData } from "@/actions/pelaporan";
|
|
|
import { updateJadwal } from "@/actions/penjadwalan";
|
|
|
import DetailLaporan from "@/components/Main/DetailLaporan";
|
|
|
@@ -15,6 +15,7 @@ import events from "./calendar.events";
|
|
|
import Select from "react-select";
|
|
|
import moment from "moment";
|
|
|
import { connect } from "react-redux";
|
|
|
+import Loader from "@/components/Common/Loader";
|
|
|
|
|
|
const status = [
|
|
|
{ value: "Ditindaklanjuti DIKTI", label: "Ditindaklanjuti DIKTI", className: "State-ACT" },
|
|
|
@@ -178,13 +179,23 @@ class Calendar extends Component {
|
|
|
</div>
|
|
|
</div>
|
|
|
<div className="calendar-app">
|
|
|
- <div class="row">
|
|
|
- <div class="col">
|
|
|
- <Card className="card-default">
|
|
|
- <CardBody>{laporan.data && <DetailLaporan noStatus query={this.props.query} data={laporan.data[0]} handleChangeSelect={this.handleChangeSelect} />}</CardBody>
|
|
|
- </Card>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ {laporan.data ? (
|
|
|
+ <Row>
|
|
|
+ <Col>
|
|
|
+ <Card className="card-default">
|
|
|
+ <CardBody>
|
|
|
+ <DetailLaporan noStatus query={this.props.query} data={laporan.data[0]} handleChangeSelect={this.handleChangeSelect} />
|
|
|
+ </CardBody>
|
|
|
+ </Card>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ ) : (
|
|
|
+ <Row className="mb-4">
|
|
|
+ <Col>
|
|
|
+ <Loader />
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ )}
|
|
|
<div className="row">
|
|
|
<div className="col-xl-4 col-lg-5">
|
|
|
<div className="row">
|