place optional parameters of functions at the end(#104)

This commit is contained in:
liao文禧
2024-05-14 11:22:13 +08:00
parent 9de091c990
commit a33b68bfd0
14 changed files with 32 additions and 32 deletions

View File

@@ -92,7 +92,7 @@ export default function AreaInfo({ data, i }) {
type="danger"
onClick={() => {
Toast.success(`Area deleted!`);
deleteArea(i, true);
deleteArea(i);
}}
/>
</Col>

View File

@@ -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>

View File

@@ -138,7 +138,7 @@ export default function NoteInfo({ data, nid }) {
type="danger"
onClick={() => {
Toast.success(`Note deleted!`);
deleteNote(nid, true);
deleteNote(nid);
}}
/>
</div>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>