Skip to content

Commit

Permalink
docs:fix 2 linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Topener committed Sep 9, 2024
1 parent 21ce73c commit 79f15bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/components/DemoComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { DEMO_URL } from '@site/src/constants.js'
import PropTypes from 'prop-types'
import React, { useRef } from 'react'
import { DEMO_URL } from '../constants.js'
import styles from './DemoComponent.module.css'

export const Demo = ({ path, args, height }) => {
const iframeRef = useRef(null)

const handleReload = () => {
if (iframeRef.current) {
iframeRef.current.src = iframeRef.current.src
iframeRef.current.contentWindow.location.reload()
}
}

Expand Down

0 comments on commit 79f15bc

Please sign in to comment.