Skip to content

Commit 0d8a930

Browse files
committed
feat: add reset button and label to checkbox
1 parent b007b77 commit 0d8a930

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

apps/web/src/routes/_app/datahub/index.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ import React, { useState } from 'react';
33
import { toBasicISOString } from '@douglasneuroinformatics/libjs';
44
import {
55
ActionDropdown,
6+
Button,
67
Checkbox,
78
ClientTable,
89
Dialog,
910
Heading,
11+
Label,
1012
SearchBar
1113
} from '@douglasneuroinformatics/libui/components';
1214
import { useDownload, useNotificationsStore, useTranslation } from '@douglasneuroinformatics/libui/hooks';
@@ -209,9 +211,14 @@ const RouteComponent = () => {
209211
/>
210212
</div>
211213
<div className="flex min-w-60 gap-2 lg:shrink">
212-
<Checkbox id="Datahub table search mode" onCheckedChange={() => setLookUpSearch(!isLookUpSearch)}>
213-
Table Search Mode
214-
</Checkbox>
214+
<Checkbox
215+
id="Datahub table search mode"
216+
onCheckedChange={() => setLookUpSearch(!isLookUpSearch)}
217+
></Checkbox>
218+
<Label>Enable Datahub Table Search</Label>
219+
</div>
220+
<div className="flex min-w-60 gap-2 lg:shrink">
221+
<Button label="Reset Datahub" onClick={() => void setTableData(data)} />
215222
</div>
216223
</div>
217224
<MasterDataTable

0 commit comments

Comments
 (0)