Skip to content

Commit

Permalink
Update popover to use new PDS component
Browse files Browse the repository at this point in the history
  • Loading branch information
mel-miller committed Oct 10, 2023
1 parent a4c5d49 commit 9acae7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/popover.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from "react"

import { Tooltip } from "@pantheon-systems/pds-toolkit-react"
import { Popover as PDSPopover } from "@pantheon-systems/pds-toolkit-react"

const Popover = ({ icon, title, content }) => {
const tooltipContent = title ? [title, ": ", content] : content
const processedContent = <div dangerouslySetInnerHTML={{ __html: content }} />

return <Tooltip iconName="circleInfo" tooltipText={tooltipContent} />
return <PDSPopover content={processedContent} title={title} />
}

export default Popover

0 comments on commit 9acae7d

Please sign in to comment.