Skip to content

Commit

Permalink
(docs) fix docusaurus warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 5, 2024
1 parent d070973 commit 2be3c92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/components/Tools/Bookmark.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { useEffect, useRef } from 'react';
import Heading from '@theme/Heading';
import useBrokenLinks from '@docusaurus/useBrokenLinks';

import styles from './styles.module.css';
const BookmarkSVG = require('@site/static/img/bookmarklet.svg').default;

export default function Bookmark(): JSX.Element {
const ref = useRef<HTMLAnchorElement>();
useBrokenLinks().collectAnchor('bookmark');
useEffect(() => {
const url = 'https://cdn.jsdelivr.net/gh/jcubic/lips@devel/lib/js/bookmark.js';
fetch(url).then(function(res) {
Expand Down

0 comments on commit 2be3c92

Please sign in to comment.