Skip to content

Commit

Permalink
Remove PopoverTitle from disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinewi committed Jan 14, 2025
1 parent bc13e3c commit 78d920d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/Disclaimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useMemo } from "react";
import { useTranslation } from "react-i18next";
import { transform } from "@ndla/article-converter";
import { AccessibilityFill } from "@ndla/icons";
import { Button, PopoverContent, PopoverRoot, PopoverTitle, PopoverTrigger } from "@ndla/primitives";
import { Button, PopoverContent, PopoverRoot, PopoverTrigger } from "@ndla/primitives";
import { GQLTransformedDisclaimerContent } from "../graphqlTypes";

interface Props {
Expand All @@ -32,10 +32,7 @@ const Disclaimer = ({ disclaimer }: Props) => {
<AccessibilityFill />
</Button>
</PopoverTrigger>
<PopoverContent>
<PopoverTitle>{t("uuDisclaimer.title")}</PopoverTitle>
<div>{transformedDisclaimer}</div>
</PopoverContent>
<PopoverContent>{transformedDisclaimer}</PopoverContent>
</PopoverRoot>
);
};
Expand Down

0 comments on commit 78d920d

Please sign in to comment.