Skip to content

Commit

Permalink
LPS-128506 - Wrap react:component taglib with ClayTooltipProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceosterhaus committed Mar 2, 2021
1 parent 0bd784d commit 019589a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"dependencies": {
"@clayui/icon": "3.1.0",
"@clayui/tooltip": "3.4.5",
"classnames": "2.2.6",
"formik": "2.1.4",
"prop-types": "15.7.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

import {ClayIconSpriteContext} from '@clayui/icon';
import {ClayTooltipProvider} from '@clayui/tooltip';
import React from 'react';
import ReactDOM from 'react-dom';

Expand Down Expand Up @@ -70,9 +71,11 @@ export default function render(renderable, renderData, container) {

// eslint-disable-next-line @liferay/portal/no-react-dom-render
ReactDOM.render(
<ClayIconSpriteContext.Provider value={spritemap}>
{Component ? <Component {...renderData} /> : renderable}
</ClayIconSpriteContext.Provider>,
<ClayTooltipProvider>
<ClayIconSpriteContext.Provider value={spritemap}>
{Component ? <Component {...renderData} /> : renderable}
</ClayIconSpriteContext.Provider>
</ClayTooltipProvider>,
container
);
}
Expand Down

0 comments on commit 019589a

Please sign in to comment.