Skip to content

Commit 72a7986

Browse files
committed
toolptipp
1 parent e55e0a8 commit 72a7986

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

site/src/components/Tooltip/Tooltip.stories.tsx

+6-10
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@ const meta: Meta<typeof TooltipProvider> = {
1212
component: TooltipProvider,
1313
args: {
1414
children: (
15-
<>
16-
<TooltipProvider>
17-
<Tooltip open>
18-
<TooltipTrigger asChild>
19-
<Button variant="outline">Hover</Button>
20-
</TooltipTrigger>
21-
<TooltipContent>Add to library</TooltipContent>
22-
</Tooltip>
23-
</TooltipProvider>
24-
</>
15+
<Tooltip open>
16+
<TooltipTrigger asChild>
17+
<Button variant="outline">Hover</Button>
18+
</TooltipTrigger>
19+
<TooltipContent>Add to library</TooltipContent>
20+
</Tooltip>
2521
),
2622
},
2723
};

site/src/pages/DeploymentSettingsPage/IdpOrgSyncPage/IdpOrgSyncPageView.tsx

+17-14
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ import {
2929
type Option,
3030
} from "components/MultiSelectCombobox/MultiSelectCombobox";
3131
import {
32-
Popover,
33-
PopoverContent,
34-
PopoverTrigger,
35-
} from "components/Popover/Popover";
32+
Tooltip,
33+
TooltipContent,
34+
TooltipTrigger,
35+
} from "components/Tooltip/Tooltip";
3636
import { Spinner } from "components/Spinner/Spinner";
3737
import { Switch } from "components/Switch/Switch";
3838
import {
@@ -50,6 +50,7 @@ import { isUUID } from "utils/uuid";
5050
import * as Yup from "yup";
5151
import { OrganizationPills } from "./OrganizationPills";
5252
import { Stack } from "components/Stack/Stack";
53+
import { TooltipProvider } from "@radix-ui/react-tooltip";
5354

5455
interface IdpSyncPageViewProps {
5556
organizationSyncSettings: OrganizationSyncSettings | undefined;
@@ -416,16 +417,18 @@ const OrganizationRow: FC<OrganizationRowProps> = ({
416417
<Stack direction="row" alignItems="center" spacing={1}>
417418
{idpOrg}
418419
{!exists && (
419-
<Popover>
420-
<PopoverTrigger asChild>
421-
<TriangleAlert className="size-icon-sm cursor-pointer text-content-warning" />
422-
</PopoverTrigger>
423-
<PopoverContent className="p-2 text-xs text-content-secondary">
424-
This value has not be seen in the specified claim field before.
425-
You might want to check your IdP configuration and ensure that
426-
this value is not misspelled.
427-
</PopoverContent>
428-
</Popover>
420+
<TooltipProvider>
421+
<Tooltip>
422+
<TooltipTrigger asChild>
423+
<TriangleAlert className="size-icon-sm cursor-pointer text-content-warning" />
424+
</TooltipTrigger>
425+
<TooltipContent className="p-2 text-xs text-content-secondary max-w-sm">
426+
This value has not be seen in the specified claim field
427+
before. You might want to check your IdP configuration and
428+
ensure that this value is not misspelled.
429+
</TooltipContent>
430+
</Tooltip>
431+
</TooltipProvider>
429432
)}
430433
</Stack>
431434
</TableCell>

0 commit comments

Comments
 (0)