|
1 | 1 | import React, { useMemo, useState } from 'react'
|
2 | 2 | import Modal from 'react-modal'
|
3 | 3 | import { useTranslation } from 'react-i18next'
|
4 |
| -import { DatePicker } from 'antd' |
5 | 4 |
|
6 | 5 | import Button from '../../../../components/core/Button'
|
7 | 6 | import { prepareParams } from '../../redux/actions'
|
8 | 7 | import ExportModalContent from '../ExportModalContent'
|
9 | 8 | import OrganizationsTable from '../OrganizationsTable'
|
| 9 | +import RangePicker from './RangePicker' |
10 | 10 |
|
11 | 11 | const ordersStates = ['new', 'accepted', 'fulfilled']
|
12 | 12 |
|
@@ -45,11 +45,10 @@ export default () => {
|
45 | 45 | <h5>{t('ADMIN_ORDERS_TO_INVOICE_TITLE')}</h5>
|
46 | 46 | <div className="d-flex" style={{ marginTop: '12px', gap: '24px' }}>
|
47 | 47 | {t('ADMIN_DASHBOARD_NAV_FILTERS')}:
|
| 48 | + <RangePicker setDateRange={setDateRange} /> |
48 | 49 | <div className="d-flex flex-column">
|
49 |
| - {t('ADMIN_ORDERS_TO_INVOICE_FILTER_RANGE')} |
50 |
| - <DatePicker.RangePicker onChange={setDateRange} /> |
51 |
| - </div> |
52 |
| - <div className="d-flex flex-column justify-content-end"> |
| 50 | + {/*invisible text is used to align the Refresh button*/} |
| 51 | + <span style={{ visibility: 'hidden' }}>{'invisible text'}</span> |
53 | 52 | <Button
|
54 | 53 | testID="invoicing.refresh"
|
55 | 54 | primary
|
|
0 commit comments