X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f5127724c5ca39a59a08ba20f843e530b0650be9..0a901d62940804d2854b2b39d2ea0199fd795ad3:/src/components/text-field/text-field.tsx diff --git a/src/components/text-field/text-field.tsx b/src/components/text-field/text-field.tsx index 1bf51973..627e004d 100644 --- a/src/components/text-field/text-field.tsx +++ b/src/components/text-field/text-field.tsx @@ -16,17 +16,23 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }, }); -export const TextField = withStyles(styles)((props: WrappedFieldProps & WithStyles & { label?: string, autoFocus?: boolean, required?: boolean }) => +type TextFieldProps = WrappedFieldProps & WithStyles; + +export const TextField = withStyles(styles)((props: TextFieldProps & { + label?: string, autoFocus?: boolean, required?: boolean, select?: boolean, disabled?: boolean, children: React.ReactNode +}) => ); @@ -35,7 +41,7 @@ interface RichEditorTextFieldData { label?: string; } -type RichEditorTextFieldProps = RichEditorTextFieldData & WrappedFieldProps & WithStyles; +type RichEditorTextFieldProps = RichEditorTextFieldData & TextFieldProps; export const RichEditorTextField = withStyles(styles)( class RichEditorTextField extends React.Component { @@ -49,7 +55,7 @@ export const RichEditorTextField = withStyles(styles)( } render() { - return ; @@ -57,20 +63,19 @@ export const RichEditorTextField = withStyles(styles)( } ); -type DataTextFieldProps = WrappedFieldProps & WithStyles; - -export const DataTextField = withStyles(styles) - ((props: DataTextFieldProps) => +export const DateTextField = withStyles(styles) + ((props: TextFieldProps) => + /> ); \ No newline at end of file