Skip to content

Commit 9105e76

Browse files
committed
Fix typescript build error
1 parent bf88dd5 commit 9105e76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/components/mdx/Admonition/Admonition.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState, useEffect } from "react"
22
import { X, Info, AlertTriangle, AlertCircle, CheckCircle } from "lucide-react"
33
import { cn } from "@/lib/utils"
44
import { InlineMarkdown } from "@/components/mdx/shared/components/InlineMarkdown"
5-
import { shouldShowAlert, setDontShowAgain } from "@/lib/localStorage"
5+
import { shouldShowAlert, setDontShowAgain as saveHidePreference } from "@/lib/localStorage"
66

77
type AdmonitionType = "note" | "info" | "warning" | "danger"
88

@@ -94,7 +94,7 @@ export function Admonition({
9494
if (checked && confirmationText) {
9595
// If "don't show again" is checked, store in localStorage
9696
if (dontShowAgain && allowPermanentHide && storageKey) {
97-
setDontShowAgain(`admonition_hide_${storageKey}`)
97+
saveHidePreference(`admonition_hide_${storageKey}`)
9898
}
9999

100100
// Wait 250ms, then start fading out

0 commit comments

Comments
 (0)