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
@@ -4,14 +4,14 @@ import classnames from 'classnames';
|
||||
|
||||
const TableCell = ({
|
||||
children,
|
||||
className,
|
||||
colSpan,
|
||||
className = '',
|
||||
colSpan = 1,
|
||||
// ignored because we don't want to expose this prop
|
||||
// eslint-disable-next-line react/prop-types
|
||||
cellsNum,
|
||||
isTableHead,
|
||||
align,
|
||||
style,
|
||||
isTableHead = false,
|
||||
align = 'left',
|
||||
style = {},
|
||||
}) => {
|
||||
const classes = {
|
||||
align: {
|
||||
@@ -42,14 +42,6 @@ const TableCell = ({
|
||||
);
|
||||
};
|
||||
|
||||
TableCell.defaultProps = {
|
||||
align: 'left',
|
||||
className: '',
|
||||
colSpan: 1,
|
||||
isTableHead: false,
|
||||
style: {},
|
||||
};
|
||||
|
||||
TableCell.propTypes = {
|
||||
align: PropTypes.oneOf(['left', 'center', 'right', 'justify']),
|
||||
children: PropTypes.node.isRequired,
|
||||
|
||||
Reference in new issue
Block a user