Skip to content

v2.5.0

Latest
Compare
Choose a tag to compare
@aykutkardas aykutkardas released this 02 Apr 08:56

Change Log

Remove IconComponent type
Add IconProps type

Before:

import IcoMoon, { IconComponent } from "react-icomoon";

const Icon: typeof IconComponent = (props) => (
  <IcoMoon iconSet={iconSet} {...props} />
);

Now:

import IcoMoon, { IconProps } from "react-icomoon";

const Icon = (props: IconProps) => <IcoMoon iconSet={iconSet} {...props} />;