Update DOMPurify imports correctly to resolve compilation warnings

This commit is contained in:
Debanjum Singh Solanky
2024-08-02 00:44:29 +05:30
parent 4492017b96
commit 4f783b911c
2 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ import {
SheetTrigger,
} from "@/components/ui/sheet";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
import * as DomPurify from 'dompurify';
import DOMPurify from 'dompurify';
interface NotesContextReferenceData {
title: string;
@@ -36,7 +36,7 @@ interface NotesContextReferenceCardProps extends NotesContextReferenceData {
function NotesContextReferenceCard(props: NotesContextReferenceCardProps) {
const snippet = props.showFullContent ? DomPurify.sanitize(md.render(props.content)) : DomPurify.sanitize(props.content);
const snippet = props.showFullContent ? DOMPurify.sanitize(md.render(props.content)) : DOMPurify.sanitize(props.content);
const [isHovering, setIsHovering] = useState(false);
return (