projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add checkbox field component and change advance form
[arvados-workbench2.git]
/
src
/
views-components
/
form-fields
/
search-bar-form-fields.tsx
diff --git
a/src/views-components/form-fields/search-bar-form-fields.tsx
b/src/views-components/form-fields/search-bar-form-fields.tsx
index 269113218c2bf7434dc5058bd9f37839cecd35a1..8d058ec3e201b73a82fbf1532d7f657e30f79941 100644
(file)
--- a/
src/views-components/form-fields/search-bar-form-fields.tsx
+++ b/
src/views-components/form-fields/search-bar-form-fields.tsx
@@
-3,8
+3,9
@@
// SPDX-License-Identifier: AGPL-3.0
import * as React from "react";
// SPDX-License-Identifier: AGPL-3.0
import * as React from "react";
-import { Field } from
"redux-form"
;
+import { Field } from
'redux-form'
;
import { TextField } from "~/components/text-field/text-field";
import { TextField } from "~/components/text-field/text-field";
+import { CheckboxField } from '~/components/checkbox-field/checkbox-field';
import { Checkbox, FormControlLabel } from '@material-ui/core';
export const SearchBarTypeField = () =>
import { Checkbox, FormControlLabel } from '@material-ui/core';
export const SearchBarTypeField = () =>
@@
-26,14
+27,9
@@
export const SearchBarProjectField = () =>
label="Project name" />;
export const SearchBarTrashField = () =>
label="Project name" />;
export const SearchBarTrashField = () =>
- <FormControlLabel
- control={
- <Checkbox
- checked={false}
- value="true"
- color="primary"
- />
- }
+ <Field
+ name='inTrash'
+ component={CheckboxField}
label="In trash" />;
export const SearchBarDataFromField = () =>
label="In trash" />;
export const SearchBarDataFromField = () =>
@@
-61,14
+57,9
@@
export const SearchBarValueField = () =>
label="Value" />;
export const SearchBarSaveSearchField = () =>
label="Value" />;
export const SearchBarSaveSearchField = () =>
- <FormControlLabel
- control={
- <Checkbox
- checked={false}
- value="true"
- color="primary"
- />
- }
+ <Field
+ name='saveQuery'
+ component={CheckboxField}
label="Save search query" />;
export const SearchBarQuerySearchField = () =>
label="Save search query" />;
export const SearchBarQuerySearchField = () =>