Skip to content

Commit 1f090dd

Browse files
authored
Merge pull request #6581 from kahirokunn/fix-typo
fix typo
2 parents d958441 + f6ca428 commit 1f090dd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/components/artifacts.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ type HTMLPreviewProps = {
2929
onLoad?: (title?: string) => void;
3030
};
3131

32-
export type HTMLPreviewHander = {
32+
export type HTMLPreviewHandler = {
3333
reload: () => void;
3434
};
3535

36-
export const HTMLPreview = forwardRef<HTMLPreviewHander, HTMLPreviewProps>(
36+
export const HTMLPreview = forwardRef<HTMLPreviewHandler, HTMLPreviewProps>(
3737
function HTMLPreview(props, ref) {
3838
const iframeRef = useRef<HTMLIFrameElement>(null);
3939
const [frameId, setFrameId] = useState<string>(nanoid());
@@ -207,7 +207,7 @@ export function Artifacts() {
207207
const [code, setCode] = useState("");
208208
const [loading, setLoading] = useState(true);
209209
const [fileName, setFileName] = useState("");
210-
const previewRef = useRef<HTMLPreviewHander>(null);
210+
const previewRef = useRef<HTMLPreviewHandler>(null);
211211

212212
useEffect(() => {
213213
if (id) {

app/components/markdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { showImageModal, FullScreen } from "./ui-lib";
1717
import {
1818
ArtifactsShareButton,
1919
HTMLPreview,
20-
HTMLPreviewHander,
20+
HTMLPreviewHandler,
2121
} from "./artifacts";
2222
import { useChatStore } from "../store";
2323
import { IconButton } from "./button";
@@ -73,7 +73,7 @@ export function Mermaid(props: { code: string }) {
7373

7474
export function PreCode(props: { children: any }) {
7575
const ref = useRef<HTMLPreElement>(null);
76-
const previewRef = useRef<HTMLPreviewHander>(null);
76+
const previewRef = useRef<HTMLPreviewHandler>(null);
7777
const [mermaidCode, setMermaidCode] = useState("");
7878
const [htmlCode, setHtmlCode] = useState("");
7979
const { height } = useWindowSize();

0 commit comments

Comments
 (0)