37991e220e
- getDOMElement relied on React.renderToStaticMarkup, which is react 18 was moved to a different file than the one exposed with react-dom-server. To not add another file just for that one function, replace getDOMElement with getCSSIcon. - getDOMElement was mainly used for a few remaining png icons that were not replaced with svg. For those few icons, just record which background-url should be set when the module loads and add it in getCSSIcon if applicable. Alternatively, background-image setting could be moved into a stylesheet? - a few hardcoded twisty svgs in icons.jsx are not used anywhere (they would be fetched via IconTwisty), so those are removed |
||
---|---|---|
.. | ||
scaffold | ||
zotero | ||
zotero-platform |