mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-10 16:56:31 +00:00
a simple date picker w/ burnettk
This commit is contained in:
parent
e199835079
commit
d0e56a2ea1
@ -16,4 +16,4 @@ export const PROCESS_STATUSES = [
|
|||||||
'suspended',
|
'suspended',
|
||||||
];
|
];
|
||||||
|
|
||||||
export const DATE_FORMAT = 'yyyy-MM-dd HH:mm:ss';
|
export const DATE_FORMAT = 'Y-m-d';
|
||||||
|
@ -9,6 +9,8 @@ import {
|
|||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
ButtonSet,
|
ButtonSet,
|
||||||
|
DatePicker,
|
||||||
|
DatePickerInput,
|
||||||
Table,
|
Table,
|
||||||
Stack,
|
Stack,
|
||||||
Form,
|
Form,
|
||||||
@ -21,8 +23,6 @@ import {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
} from '@carbon/react';
|
} from '@carbon/react';
|
||||||
import { InputGroup } from 'react-bootstrap';
|
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 { Typeahead } from 'react-bootstrap-typeahead';
|
||||||
import { PROCESS_STATUSES, DATE_FORMAT } from '../config';
|
import { PROCESS_STATUSES, DATE_FORMAT } from '../config';
|
||||||
import {
|
import {
|
||||||
@ -397,6 +397,20 @@ export default function ProcessInstanceList() {
|
|||||||
<Column md={8}>{processModelSearch()}</Column>
|
<Column md={8}>{processModelSearch()}</Column>
|
||||||
<Column md={8}>{processStatusSearch()}</Column>
|
<Column md={8}>{processStatusSearch()}</Column>
|
||||||
</Grid>
|
</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">
|
<Grid fullWidth className="with-bottom-margin">
|
||||||
<Column md={4}>
|
<Column md={4}>
|
||||||
<ButtonSet>
|
<ButtonSet>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user