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
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
|
||||
const Table = ({ children, className, fullWidth, style }) => {
|
||||
const Table = ({ children, className = '', fullWidth = true, style = {} }) => {
|
||||
const classes = {
|
||||
base: 'text-lg text-white',
|
||||
fullWidth: {
|
||||
@@ -21,12 +21,6 @@ const Table = ({ children, className, fullWidth, style }) => {
|
||||
);
|
||||
};
|
||||
|
||||
Table.defaultProps = {
|
||||
className: '',
|
||||
fullWidth: true,
|
||||
style: {},
|
||||
};
|
||||
|
||||
Table.propTypes = {
|
||||
fullWidth: PropTypes.bool,
|
||||
children: PropTypes.node.isRequired,
|
||||
|
||||
Reference in new issue
Block a user