diff --git a/pages/contract/agreement.js b/pages/contract/agreement.js index bcf8416..f62b67d 100644 --- a/pages/contract/agreement.js +++ b/pages/contract/agreement.js @@ -4,6 +4,7 @@ import Image from 'next/image'; import { connect } from "react-redux"; import { withRouter } from 'next/router'; import moment from "moment"; +import { SpinnerCircular } from 'spinners-react'; import { reduxWrapper } from '../../store'; @@ -22,6 +23,7 @@ class ContractPage extends React.Component this.state = { contract_date: null, agreement: null, + loading: false, } } @@ -50,7 +52,7 @@ class ContractPage extends React.Component render() { - const { contract_date } = this.state; + const { contract_date, loading } = this.state; const { number } = this.props; return ( diff --git a/pages/contract/documents.js b/pages/contract/documents.js index 0be82d8..6a89019 100644 --- a/pages/contract/documents.js +++ b/pages/contract/documents.js @@ -4,6 +4,7 @@ import Image from 'next/image'; import { connect } from "react-redux"; import { withRouter } from 'next/router'; import moment from "moment"; +import { SpinnerCircular } from 'spinners-react'; import { reduxWrapper } from '../../store'; @@ -22,6 +23,7 @@ class ContractDocumentsPage extends React.Component this.state = { contract_date: null, documents: null, + loading: false, } } @@ -50,7 +52,7 @@ class ContractDocumentsPage extends React.Component render() { - const { contract_date } = this.state; + const { contract_date, loading } = this.state; const { number } = this.props; return ( @@ -92,57 +94,63 @@ class ContractDocumentsPage extends React.Component -
-
-
-

- УПД по очередным платежам -

- -
-
-
-

№ постановления: 3432434242334

-
    -
  • Сумма: 3 000,00 р.
  • -
  • Дата: 01/01/2020
  • -
  • Статус: Оплачен
  • -
  • Штраф: п. 1.15 - Несоблюдение правил парковки
  • -
+ { loading ? ( +
+ +
+ ) : ( +
+
+
+

+ УПД по очередным платежам +

+ +
+
+
+

№ постановления: 3432434242334

+
    +
  • Сумма: 3 000,00 р.
  • +
  • Дата: 01/01/2020
  • +
  • Статус: Оплачен
  • +
  • Штраф: п. 1.15 - Несоблюдение правил парковки
  • +
+
-
-
-
-

- Дополнительное соглашение №1 -

- Скачать +
+
+

+ Дополнительное соглашение №1 +

+ Скачать +
+
+

+ Дополнительное соглашение №2 +

+ Скачать +
+
+

+ Выкупные документы +

+ Скачать +
-
-

- Дополнительное соглашение №2 -

- Скачать -
-
-

- Выкупные документы -

- Скачать + +
+
+

+ УПД по доп.услугам +

+ +
+
- -
-
-

- УПД по доп.услугам -

- -
-
-
-
+ ) }
diff --git a/pages/contract/services.js b/pages/contract/services.js index cc8e673..516b5de 100644 --- a/pages/contract/services.js +++ b/pages/contract/services.js @@ -4,6 +4,7 @@ import Image from 'next/image'; import { connect } from "react-redux"; import { withRouter } from 'next/router'; import moment from "moment"; +import { SpinnerCircular } from 'spinners-react'; import { reduxWrapper } from '../../store'; @@ -70,7 +71,7 @@ class ContractServicesPage extends React.Component render() { - const { opened, contract_date } = this.state; + const { opened, contract_date, loading } = this.state; const { number } = this.props; return (