Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 5a54630

Browse files
form added top
1 parent 3c779bd commit 5a54630

File tree

3 files changed

+12
-85
lines changed

3 files changed

+12
-85
lines changed

src/forms/todo/todo.form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function TodoForm({ onClose }) {
191191
}
192192

193193
TodoForm.propTypes = {
194-
onClose: PropTypes.func.isRequired,
194+
// onClose: PropTypes.func.isRequired,
195195
};
196196

197197
export { TodoForm };

src/pages/Popup.js

Lines changed: 0 additions & 83 deletions
This file was deleted.

src/pages/Todo.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
import React from 'react';
22
import { Row, Col } from 'antd';
3-
import { ModalForm, DrawerForm } from '../forms/todo';
3+
import { ModalForm, DrawerForm, TodoForm } from '../forms/todo';
44
import { TodoList } from '../components/todo';
55

66
export default function Todo() {
7+
function onClose() {
8+
console.log('onClose');
9+
}
10+
711
return (
812
<div className="main-layout">
13+
<Row gutter={8} justify={'center'}>
14+
<Col span={8}>
15+
<TodoForm onClose={onClose} />
16+
</Col>
17+
</Row>
18+
919
<Row gutter={8} justify={'end'}>
1020
<Col>
1121
<ModalForm />

0 commit comments

Comments
 (0)