mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
feat(react): add custom elements bundle (#23896)
This commit is contained in:
@ -4,7 +4,6 @@ import { NavContext } from '../contexts/NavContext';
|
||||
|
||||
import { IonicReactProps } from './IonicReactProps';
|
||||
import { IonIconInner } from './inner-proxies';
|
||||
import { deprecationWarning } from './react-component-lib/utils/dev';
|
||||
import { createForwardRef, isPlatform } from './utils';
|
||||
|
||||
interface IonIconProps {
|
||||
@ -29,10 +28,7 @@ class IonIconContainer extends React.PureComponent<InternalProps> {
|
||||
constructor(props: InternalProps) {
|
||||
super(props);
|
||||
if (this.props.name) {
|
||||
deprecationWarning(
|
||||
'icon-name',
|
||||
'In Ionic React, you import icons from "ionicons/icons" and set the icon you imported to the "icon" property. Setting the "name" property has no effect.'
|
||||
);
|
||||
console.warn('In Ionic React, you import icons from "ionicons/icons" and set the icon you imported to the "icon" property. Setting the "name" property has no effect.');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user