|
@@ -1,6 +1,7 @@
|
|
import React, {Component} from 'react';
|
|
import React, {Component} from 'react';
|
|
import {Link} from 'react-router-dom'
|
|
import {Link} from 'react-router-dom'
|
|
import ChangeOrder from "./ChangeOrder";
|
|
import ChangeOrder from "./ChangeOrder";
|
|
|
|
+
|
|
class Orders extends Component {
|
|
class Orders extends Component {
|
|
state={
|
|
state={
|
|
order:null,
|
|
order:null,
|
|
@@ -8,7 +9,6 @@ class Orders extends Component {
|
|
|
|
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
this.props.getUsers();
|
|
this.props.getUsers();
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
componentDidUpdate(prevProps, prevState, snapshot) {
|
|
componentDidUpdate(prevProps, prevState, snapshot) {
|
|
@@ -42,7 +42,7 @@ class Orders extends Component {
|
|
};
|
|
};
|
|
|
|
|
|
render() {
|
|
render() {
|
|
- const{findOrderInput,ordersArray,searching,orders,doctors,services,
|
|
|
|
|
|
+ const{ findOrderInput,ordersArray,searching,orders,doctors,services,
|
|
appointment,
|
|
appointment,
|
|
timeArray,
|
|
timeArray,
|
|
setAppointmentSpec,
|
|
setAppointmentSpec,
|
|
@@ -94,10 +94,7 @@ class Orders extends Component {
|
|
</div>
|
|
</div>
|
|
))}
|
|
))}
|
|
</div>
|
|
</div>
|
|
- <div className = "orders-item" style={{
|
|
|
|
- display:'flex',
|
|
|
|
- flexDirection:'column',
|
|
|
|
- }}>
|
|
|
|
|
|
+ <div className = "orders-item">
|
|
{orders.map(el => (
|
|
{orders.map(el => (
|
|
<div className = "order" key={el._id} >
|
|
<div className = "order" key={el._id} >
|
|
<div className = "order-date">
|
|
<div className = "order-date">
|
|
@@ -116,7 +113,7 @@ class Orders extends Component {
|
|
))}
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </>
|
|
|
|
|
|
+ </>
|
|
);
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|