Boris K 5 years ago
parent
commit
5d4e0b6970
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/Calendar.js

+ 4 - 1
src/components/Calendar.js

@@ -6,12 +6,15 @@ export default class Calendar extends Component {
         current:moment(),
         current:moment(),
     };
     };
 
 
-    render() {
+    componentDidMount() {
         moment.locale('ru', {
         moment.locale('ru', {
             week : {
             week : {
                 dow:1
                 dow:1
             }
             }
         });
         });
+    }
+
+    render() {
         const {doctor,setAppointmentShedule} = this.props
         const {doctor,setAppointmentShedule} = this.props
         const {current} = this.state
         const {current} = this.state
         const daysArray = []
         const daysArray = []