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
@@ -74,14 +74,14 @@ const fullWidthClasses = {
|
||||
|
||||
const IconButton = ({
|
||||
children,
|
||||
variant,
|
||||
color,
|
||||
size,
|
||||
rounded,
|
||||
disabled,
|
||||
type,
|
||||
fullWidth,
|
||||
onClick,
|
||||
variant = 'contained',
|
||||
color = 'default',
|
||||
size = 'medium',
|
||||
rounded = 'medium',
|
||||
disabled = false,
|
||||
type = 'button',
|
||||
fullWidth = false,
|
||||
onClick = () => {},
|
||||
className,
|
||||
id,
|
||||
...rest
|
||||
@@ -122,17 +122,6 @@ const IconButton = ({
|
||||
);
|
||||
};
|
||||
|
||||
IconButton.defaultProps = {
|
||||
onClick: () => {},
|
||||
color: 'default',
|
||||
disabled: false,
|
||||
fullWidth: false,
|
||||
rounded: 'medium',
|
||||
size: 'medium',
|
||||
type: 'button',
|
||||
variant: 'contained',
|
||||
};
|
||||
|
||||
IconButton.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
size: PropTypes.oneOf(['small', 'medium', 'large', 'initial', 'toolbar', 'toolbox']),
|
||||
|
||||
Reference in new issue
Block a user