質問編集履歴
1
記載ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,13 +22,13 @@
|
|
22
22
|
|
23
23
|
let day = date.getDate();
|
24
24
|
|
25
|
-
let time = { ...props.
|
25
|
+
let time = { ...props.time };
|
26
26
|
|
27
27
|
time[day] = date;
|
28
28
|
|
29
|
-
props.set
|
29
|
+
props.setTimes(time);
|
30
30
|
|
31
|
-
console.log(props.
|
31
|
+
console.log(props.time);
|
32
32
|
|
33
33
|
};
|
34
34
|
|
@@ -42,9 +42,9 @@
|
|
42
42
|
|
43
43
|
let day = date.getDate();
|
44
44
|
|
45
|
-
props.set
|
45
|
+
props.setTime(({ ...props.time, [day]: date }));
|
46
46
|
|
47
|
-
console.log(props.
|
47
|
+
console.log(props.time);
|
48
48
|
|
49
49
|
};
|
50
50
|
|
@@ -72,9 +72,9 @@
|
|
72
72
|
|
73
73
|
let day = date.getDate();
|
74
74
|
|
75
|
-
props.set
|
75
|
+
props.setTime(({ ...props.time, day: date }));
|
76
76
|
|
77
|
-
console.log(props.
|
77
|
+
console.log(props.time);
|
78
78
|
|
79
79
|
};
|
80
80
|
|