feat(ui): move to React 18 and base for using shadcn/ui (#4174)

Co-authored-by: IbrahimCSAE <ibrahim.mdev@gmail.com>
This commit is contained in:
AlirezaandIbrahimCSAE authored and GitHub committed 2024-05-27 14:30:25 -04:00
1 parent 72b63dcd6a
commit 70f2c797f4
153 files changed
+2973 -2043

No files matched your search

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import DateRange from '../DateRange';
import { DatePickerWithRange } from '@ohif/ui-next';
import InputLabelWrapper from '../InputLabelWrapper';
const InputDateRange = ({
@@ -9,8 +9,8 @@ const InputDateRange = ({
label,
isSortable,
sortDirection,
onLabelClick,
value,
onLabelClick = () => {},
value = {},
onChange,
}) => {
const { startDate, endDate } = value;
@@ -26,9 +26,11 @@ const InputDateRange = ({
isSortable={isSortable}
sortDirection={sortDirection}
onLabelClick={onClickHandler}
className="xl:min-w-[284px]"
>
<div className="relative">
<DateRange
<div className="relative xl:max-w-[246px]">
<DatePickerWithRange
className="mt-2"
id={id}
startDate={startDate}
endDate={endDate}
@@ -39,13 +41,6 @@ const InputDateRange = ({
);
};
const noop = () => {};
InputDateRange.defaultProps = {
value: {},
onLabelClick: noop,
};
InputDateRange.propTypes = {
id: PropTypes.string,
label: PropTypes.string.isRequired,