a simple date picker w/ burnettk

This commit is contained in:
jasquat 2022-11-01 17:30:55 -04:00
parent e199835079
commit d0e56a2ea1
2 changed files with 17 additions and 3 deletions

View File

@ -16,4 +16,4 @@ export const PROCESS_STATUSES = [
'suspended',
];
export const DATE_FORMAT = 'yyyy-MM-dd HH:mm:ss';
export const DATE_FORMAT = 'Y-m-d';

View File

@ -9,6 +9,8 @@ import {
import {
Button,
ButtonSet,
DatePicker,
DatePickerInput,
Table,
Stack,
Form,
@ -21,8 +23,6 @@ import {
// @ts-ignore
} from '@carbon/react';
import { InputGroup } from 'react-bootstrap';
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
import DatePicker from 'react-datepicker';
import { Typeahead } from 'react-bootstrap-typeahead';
import { PROCESS_STATUSES, DATE_FORMAT } from '../config';
import {
@ -397,6 +397,20 @@ export default function ProcessInstanceList() {
<Column md={8}>{processModelSearch()}</Column>
<Column md={8}>{processStatusSearch()}</Column>
</Grid>
<Grid fullWidth className="with-bottom-margin">
<Column md={8}>
{' '}
<DatePicker dateFormat={DATE_FORMAT} datePickerType="single">
<DatePickerInput
id="date-picker-default-id"
placeholder={DATE_FORMAT}
labelText="Date picker label"
type="text"
size="md"
/>
</DatePicker>
</Column>
</Grid>
<Grid fullWidth className="with-bottom-margin">
<Column md={4}>
<ButtonSet>