Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3481878
D6704.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D6704.diff
View Options
diff --git a/lib/components/SWMansionIcon.react.js b/lib/components/SWMansionIcon.react.js
--- a/lib/components/SWMansionIcon.react.js
+++ b/lib/components/SWMansionIcon.react.js
@@ -4,6 +4,9 @@
import IcomoonReact from 'react-icomoon';
import iconSet from '../shared/swmansion-icon-config.json';
+
+const IcomoonIcon = IcomoonReact.default;
+
/*
To see all of the icons the application uses and what their names are:
@@ -309,7 +312,7 @@
};
function SWMansionIcon(props: SWMansionIconProps): React.Node {
- return <IcomoonReact {...props} style={iconStyle} iconSet={iconSet} />;
+ return <IcomoonIcon {...props} style={iconStyle} iconSet={iconSet} />;
}
export default SWMansionIcon;
diff --git a/lib/package.json b/lib/package.json
--- a/lib/package.json
+++ b/lib/package.json
@@ -42,7 +42,7 @@
"just-clone": "^3.2.1",
"lodash": "^4.17.21",
"react": "18.1.0",
- "react-icomoon": "^2.4.1",
+ "react-icomoon": "^2.5.7",
"react-redux": "^7.1.1",
"reselect": "^4.0.0",
"reselect-map": "^1.0.5",
diff --git a/web/CommIcon.react.js b/web/CommIcon.react.js
--- a/web/CommIcon.react.js
+++ b/web/CommIcon.react.js
@@ -5,6 +5,8 @@
import iconSet from 'lib/shared/comm-icon-config.json';
+const IcomoonIcon = IcomoonReact.default;
+
export type CommIcons =
| 'cloud-filled'
| 'sidebar'
@@ -30,7 +32,7 @@
};
function CommIcon(props: CommIconProps): React.Node {
- return <IcomoonReact {...props} style={iconStyle} iconSet={iconSet} />;
+ return <IcomoonIcon {...props} style={iconStyle} iconSet={iconSet} />;
}
export default CommIcon;
diff --git a/web/package.json b/web/package.json
--- a/web/package.json
+++ b/web/package.json
@@ -67,7 +67,7 @@
"react-dnd-html5-backend": "^11.1.3",
"react-dom": "18.1.0",
"react-feather": "^2.0.3",
- "react-icomoon": "^2.4.1",
+ "react-icomoon": "^2.5.7",
"react-icons": "^4.4.0",
"react-redux": "^7.1.1",
"react-router": "^5.2.0",
diff --git a/yarn.lock b/yarn.lock
--- a/yarn.lock
+++ b/yarn.lock
@@ -19395,10 +19395,10 @@
dependencies:
prop-types "^15.5.10"
-react-icomoon@^2.4.1:
- version "2.4.1"
- resolved "https://registry.yarnpkg.com/react-icomoon/-/react-icomoon-2.4.1.tgz#cae0483f59a66d8e43e5f6e310f4693e60cb1e03"
- integrity sha512-DEiilFNHoLpQq71t3jmNRyKf6BEUc9+yOE4wJolVrLCnmJF+cDViPgnL47i3GHHAak1Qf9Yj6xF5Ltwot2T6LA==
+react-icomoon@^2.5.7:
+ version "2.5.7"
+ resolved "https://registry.yarnpkg.com/react-icomoon/-/react-icomoon-2.5.7.tgz#628494b5cf2531af3f2beca30763be5f989f3139"
+ integrity sha512-o6jsNviL7d2/fk83JXycvMSX76KSQ5GuC+q8xi+3anL4KY8EZH4D1BfXdqL8SF+ppOigrq4epUhfnWX8U/gM7g==
react-icons@^4.3.1:
version "4.3.1"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 4:59 AM (4 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2672391
Default Alt Text
D6704.diff (2 KB)
Attached To
Mode
D6704: Make react-icomoon work with Webpack 5
Attached
Detach File
Event Timeline
Log In to Comment