Boris K 5 năm trước cách đây
mục cha
commit
5d4e0b6970
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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(),
     };
 
-    render() {
+    componentDidMount() {
         moment.locale('ru', {
             week : {
                 dow:1
             }
         });
+    }
+
+    render() {
         const {doctor,setAppointmentShedule} = this.props
         const {current} = this.state
         const daysArray = []