File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { showImageModal, FullScreen } from "./ui-lib";
1717import {
1818 ArtifactsShareButton ,
1919 HTMLPreview ,
20- HTMLPreviewHander ,
20+ HTMLPreviewHandler ,
2121} from "./artifacts" ;
2222import { useChatStore } from "../store" ;
2323import { IconButton } from "./button" ;
@@ -73,7 +73,7 @@ export function Mermaid(props: { code: string }) {
7373
7474export 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 ( ) ;
You can’t perform that action at this time.
0 commit comments