This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export default function DrawerForm() {
16
16
return (
17
17
< >
18
18
< Button type = "primary" onClick = { showDrawer } >
19
- Open
19
+ Drawer Form
20
20
</ Button >
21
21
< Drawer
22
22
title = "Add new Todo"
Original file line number Diff line number Diff line change 1
1
export { default as DrawerForm } from './drawer.form' ;
2
- export { default as CreateForm } from './modal.form' ;
2
+ export { default as ModalForm } from './modal.form' ;
3
3
export { TodoForm } from './todo.form' ;
Original file line number Diff line number Diff line change 1
1
import React , { useState } from 'react' ;
2
- import { Drawer , Modal , Button } from 'antd' ;
2
+ import { Modal , Button } from 'antd' ;
3
3
import { TodoForm } from '../todo' ;
4
4
5
5
export default class App extends React . Component {
@@ -29,13 +29,14 @@ export default class App extends React.Component {
29
29
return (
30
30
< div >
31
31
< Button type = "primary" onClick = { this . showModal } >
32
- Open Modal
32
+ Modal Form
33
33
</ Button >
34
34
< Modal
35
35
title = "Basic Modal"
36
36
visible = { this . state . visible }
37
37
onOk = { this . handleOk }
38
38
onCancel = { this . handleCancel }
39
+ footer = { null }
39
40
>
40
41
< TodoForm />
41
42
</ Modal >
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import { CreateForm , DrawerForm , TodoForm } from '../forms/todo' ;
2
+ import { Row , Col } from 'antd' ;
3
+ import { ModalForm , DrawerForm } from '../forms/todo' ;
3
4
import { TodoList } from '../components/todo' ;
4
5
5
6
export default function Todo ( ) {
6
7
return (
7
8
< div className = "main-layout" >
8
- < CreateForm />
9
- < DrawerForm />
10
- < TodoForm />
9
+ < Row gutter = { 8 } >
10
+ < Col >
11
+ < ModalForm />
12
+ </ Col >
13
+ < Col >
14
+ < DrawerForm />
15
+ </ Col >
16
+ </ Row >
11
17
< TodoList />
12
18
</ div >
13
19
) ;
You can’t perform that action at this time.
0 commit comments