Page MenuHomePhabricator

D6704.diff
No OneTemporary

D6704.diff

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

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)

Event Timeline