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

@@ -137,7 +137,7 @@ const fullWidthClasses = {
};
const LegacyButton = ({
children,
children = '',
variant = defaults.variant,
color = defaults.color,
border = defaults.border,
@@ -151,7 +151,7 @@ const LegacyButton = ({
endIcon: endIconProp,
name,
className,
onClick,
onClick = () => {},
/** TODO: All possible props should be explicitly defined -- avoid spreading props */
...rest
}) => {
@@ -206,13 +206,6 @@ const LegacyButton = ({
);
};
LegacyButton.defaultProps = {
color: defaults.color,
disabled: false,
children: '',
onClick: () => {},
};
LegacyButton.propTypes = {
/** What is inside the button, can be text or react component */
children: PropTypes.node,