質問編集履歴

2

編集

2020/02/21 02:20

投稿

ktaaa
ktaaa

スコア59

test CHANGED
File without changes
test CHANGED
@@ -277,3 +277,81 @@
277
277
 
278
278
 
279
279
  ```
280
+
281
+
282
+
283
+ //追記
284
+
285
+ ```ここに言語を入力
286
+
287
+ interface Props {
288
+
289
+ handleClose: () => void;
290
+
291
+ handleDelete: () => void;
292
+
293
+ open: boolean;
294
+
295
+ }
296
+
297
+
298
+
299
+ const DeleteDialog: React.FC<Props> = ({
300
+
301
+ handleDelete,
302
+
303
+ handleClose,
304
+
305
+ open,
306
+
307
+ }) => (
308
+
309
+ <Dialog
310
+
311
+ open={open}
312
+
313
+ onClose={handleClose}
314
+
315
+ >
316
+
317
+ <DialogActions>
318
+
319
+ <Button
320
+
321
+ onClick={handleClose}
322
+
323
+ color="primary"
324
+
325
+ >
326
+
327
+ キャンセル
328
+
329
+ </Button>
330
+
331
+ <Button
332
+
333
+ onClick={handleDelete}
334
+
335
+ color="secondary"
336
+
337
+ autoFocus
338
+
339
+ >
340
+
341
+ 削除
342
+
343
+ </Button>
344
+
345
+ </DialogActions>
346
+
347
+ </Dialog>
348
+
349
+ );
350
+
351
+
352
+
353
+ export default DeleteDialog;
354
+
355
+
356
+
357
+ ```

1

修正

2020/02/21 02:20

投稿

ktaaa
ktaaa

スコア59

test CHANGED
File without changes
test CHANGED
@@ -162,7 +162,7 @@
162
162
 
163
163
  <DeleteDialog
164
164
 
165
- open={ModalState.Show === state.modalState}
165
+ open={ModalState.Open=== state.modalState}
166
166
 
167
167
  handleDelete={() => handleDeleteNames(nameCheckBoxItem)}
168
168
 
@@ -258,7 +258,7 @@
258
258
 
259
259
  <DeleteDialog
260
260
 
261
- open={modalStateB === ModalStates.Show}
261
+ open={modalStateB === ModalStates.Open}
262
262
 
263
263
  handleClose={handleClose}
264
264