datePicker.tsx 628 B

1234567891011121314151617181920212223
  1. import DatePageFilter from 'sentry/components/datePageFilter';
  2. import {t} from 'sentry/locale';
  3. import {MAXIMUM_DATE_RANGE} from 'sentry/views/starfish/components/pageFilterContainer';
  4. function StarfishDatePicker() {
  5. return (
  6. <DatePageFilter
  7. maxDateRange={MAXIMUM_DATE_RANGE}
  8. disallowArbitraryRelativeRanges
  9. relativeOptions={{
  10. '1h': t('Last hour'),
  11. '12h': t('Last 12 hours'),
  12. '24h': t('Last 24 hours'),
  13. '3d': t('Last 3 days'),
  14. '7d': t('Last 7 days'),
  15. }}
  16. defaultPeriod="24h"
  17. alignDropdown="left"
  18. />
  19. );
  20. }
  21. export default StarfishDatePicker;