mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
place optional parameters of functions at the end(#104)
This commit is contained in:
@@ -92,7 +92,7 @@ export default function AreaInfo({ data, i }) {
|
||||
type="danger"
|
||||
onClick={() => {
|
||||
Toast.success(`Area deleted!`);
|
||||
deleteArea(i, true);
|
||||
deleteArea(i);
|
||||
}}
|
||||
/>
|
||||
</Col>
|
||||
|
||||
@@ -15,7 +15,7 @@ export default function AreasTab() {
|
||||
<SearchBar />
|
||||
</Col>
|
||||
<Col span={8}>
|
||||
<Button icon={<IconPlus />} block onClick={addArea}>
|
||||
<Button icon={<IconPlus />} block onClick={() => addArea()}>
|
||||
Add area
|
||||
</Button>
|
||||
</Col>
|
||||
|
||||
@@ -138,7 +138,7 @@ export default function NoteInfo({ data, nid }) {
|
||||
type="danger"
|
||||
onClick={() => {
|
||||
Toast.success(`Note deleted!`);
|
||||
deleteNote(nid, true);
|
||||
deleteNote(nid);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -221,7 +221,7 @@ export default function RelationshipInfo({ data }) {
|
||||
icon={<IconDeleteStroked />}
|
||||
block
|
||||
type="danger"
|
||||
onClick={() => deleteRelationship(data.id, true)}
|
||||
onClick={() => deleteRelationship(data.id)}
|
||||
>
|
||||
Delete
|
||||
</Button>
|
||||
|
||||
@@ -17,7 +17,7 @@ export default function TablesTab() {
|
||||
<SearchBar tables={tables} />
|
||||
</Col>
|
||||
<Col span={8}>
|
||||
<Button icon={<IconPlus />} block onClick={() => addTable(true)}>
|
||||
<Button icon={<IconPlus />} block onClick={() => addTable()}>
|
||||
Add table
|
||||
</Button>
|
||||
</Col>
|
||||
|
||||
@@ -17,7 +17,7 @@ export default function TypesTab() {
|
||||
<Searchbar />
|
||||
</Col>
|
||||
<Col span={8}>
|
||||
<Button icon={<IconPlus />} block onClick={() => addType(true)}>
|
||||
<Button icon={<IconPlus />} block onClick={() => addType()}>
|
||||
Add type
|
||||
</Button>
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user