X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3db1d07b3ab6cdfea052688088f569a173d6dab2..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 076889ea..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 { @@ -54,4 +57,21 @@ export const RichEditorTextField = withStyles(styles)( placeholder={this.props.label} />; } } -); \ No newline at end of file +); + +export const DateTextField = withStyles(styles) + ((props: TextFieldProps) => + + ); \ No newline at end of file