X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d4aa5357707c184f7e450465befeb693379ec5a9..48b31a656df71cff73bed488d8827c61b096415b:/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 beea2ba3..dd864a93 100644 --- a/src/components/text-field/text-field.tsx +++ b/src/components/text-field/text-field.tsx @@ -16,7 +16,9 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }, }); -export const TextField = withStyles(styles)((props: WrappedFieldProps & WithStyles & { label?: string, autoFocus?: boolean }) => +type TextFieldProps = WrappedFieldProps & WithStyles; + +export const TextField = withStyles(styles)((props: TextFieldProps & { label?: string, autoFocus?: boolean, required?: boolean }) => ); @@ -34,7 +37,7 @@ interface RichEditorTextFieldData { label?: string; } -type RichEditorTextFieldProps = RichEditorTextFieldData & WrappedFieldProps & WithStyles; +type RichEditorTextFieldProps = RichEditorTextFieldData & TextFieldProps; export const RichEditorTextField = withStyles(styles)( class RichEditorTextField extends React.Component { @@ -48,12 +51,27 @@ export const RichEditorTextField = withStyles(styles)( } render() { - return ( - - ); + return ; } } -); \ No newline at end of file +); + +export const DateTextField = withStyles(styles) + ((props: TextFieldProps) => + + ); \ No newline at end of file