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() {
1616 return (
1717 < >
1818 < Button type = "primary" onClick = { showDrawer } >
19- Open
19+ Drawer Form
2020 </ Button >
2121 < Drawer
2222 title = "Add new Todo"
Original file line number Diff line number Diff line change 11export { default as DrawerForm } from './drawer.form' ;
2- export { default as CreateForm } from './modal.form' ;
2+ export { default as ModalForm } from './modal.form' ;
33export { TodoForm } from './todo.form' ;
Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
2- import { Drawer , Modal , Button } from 'antd' ;
2+ import { Modal , Button } from 'antd' ;
33import { TodoForm } from '../todo' ;
44
55export default class App extends React . Component {
@@ -29,13 +29,14 @@ export default class App extends React.Component {
2929 return (
3030 < div >
3131 < Button type = "primary" onClick = { this . showModal } >
32- Open Modal
32+ Modal Form
3333 </ Button >
3434 < Modal
3535 title = "Basic Modal"
3636 visible = { this . state . visible }
3737 onOk = { this . handleOk }
3838 onCancel = { this . handleCancel }
39+ footer = { null }
3940 >
4041 < TodoForm />
4142 </ Modal >
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { CreateForm , DrawerForm , TodoForm } from '../forms/todo' ;
2+ import { Row , Col } from 'antd' ;
3+ import { ModalForm , DrawerForm } from '../forms/todo' ;
34import { TodoList } from '../components/todo' ;
45
56export default function Todo ( ) {
67 return (
78 < 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 >
1117 < TodoList />
1218 </ div >
1319 ) ;
You can’t perform that action at this time.
0 commit comments