From c6ad5ff8e3bc334da19a25d382e1f12560dcf199 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Mon, 26 Oct 2020 17:25:59 +0530 Subject: [PATCH] Rename Link to InternalLink and change usage --- components/{Link.jsx => InternalLink.jsx} | 4 ++-- docs/create-modify-element.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename components/{Link.jsx => InternalLink.jsx} (79%) diff --git a/components/Link.jsx b/components/InternalLink.jsx similarity index 79% rename from components/Link.jsx rename to components/InternalLink.jsx index 9b504a2..03b9a8c 100644 --- a/components/Link.jsx +++ b/components/InternalLink.jsx @@ -1,6 +1,6 @@ import React from "react"; -const Link = ({ hash, title }) => { +const InternalLink = ({ hash, title }) => { const handleLink = (event) => { //manually change hash to trigger hashChange event. window.location.hash = "#"; @@ -14,4 +14,4 @@ const Link = ({ hash, title }) => { ); }; -export default Link; +export default InternalLink; diff --git a/docs/create-modify-element.mdx b/docs/create-modify-element.mdx index d530195..ee9b9fd 100644 --- a/docs/create-modify-element.mdx +++ b/docs/create-modify-element.mdx @@ -7,7 +7,7 @@ slug: / import Admonition from "../components/Admonition" import Accordion from "../components/Accordion" -import Link from "../components/Link" +import InternalLink from "../components/InternalLink" import MDN from "../components/MDNBadge" :::note DOM interfaces @@ -66,7 +66,7 @@ for (let p of paras) { } ``` -`querySelectorAll` is also available on Element and DocumentFragment, in the . +`querySelectorAll` is also available on Element and DocumentFragment, in the .