23 |
24 | Make sure a development server is active by running
25 | npm run dev, or run npm run build for a
26 | production build.
27 |
28 |
29 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/src/components/layouts/PopoverWithIconLayout/PopoverWithIconLayout.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | // PatternFly
3 | import { Popover } from "@patternfly/react-core";
4 | // Icons
5 | import { OutlinedQuestionCircleIcon } from "@patternfly/react-icons";
6 |
7 | interface PropsToPopover {
8 | message: React.ReactNode | ((hide: () => void) => React.ReactNode);
9 | showClose?: boolean;
10 | ariaLabel?: string;
11 | hasNoPadding?: boolean;
12 | withFocusTrap?: boolean;
13 | hasAutoWidth?: boolean;
14 | triggerHover?: boolean;
15 | }
16 |
17 | const PopoverWithIconLayout = (props: PropsToPopover) => {
18 | return (
19 |