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:
1 parent
72b63dcd6a
commit
70f2c797f4
153 files changed
+2973
-2043
No files matched your search
@@ -9,7 +9,7 @@ const MeasurementItem = ({
|
||||
index,
|
||||
label,
|
||||
displayText,
|
||||
isActive,
|
||||
isActive = false,
|
||||
onClick,
|
||||
onEdit,
|
||||
onDelete,
|
||||
@@ -110,8 +110,4 @@ MeasurementItem.propTypes = {
|
||||
onDelete: PropTypes.func,
|
||||
};
|
||||
|
||||
MeasurementItem.defaultProps = {
|
||||
isActive: false,
|
||||
};
|
||||
|
||||
export default MeasurementItem;
|
||||
@@ -5,10 +5,10 @@ import { useTranslation } from 'react-i18next';
|
||||
import MeasurementItem from './MeasurementItem';
|
||||
|
||||
const MeasurementTable = ({
|
||||
data,
|
||||
data = [],
|
||||
title,
|
||||
onClick,
|
||||
onEdit,
|
||||
onClick = () => {},
|
||||
onEdit = () => {},
|
||||
onDelete,
|
||||
servicesManager,
|
||||
}: withAppTypes) => {
|
||||
@@ -71,12 +71,6 @@ const MeasurementTable = ({
|
||||
);
|
||||
};
|
||||
|
||||
MeasurementTable.defaultProps = {
|
||||
data: [],
|
||||
onClick: () => {},
|
||||
onEdit: () => {},
|
||||
};
|
||||
|
||||
MeasurementTable.propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
data: PropTypes.arrayOf(
|
||||
|
||||
Reference in new issue
Block a user