File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
packages/cursorless-org-docs/src/docs
contributing/scopes/components
user/languages/components Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { useLocation } from "@docusaurus/router";
55 * Scrolls to the element with the ID matching the current hash in the URL.
66 * This is needed when a hash ID is provided in the initial load to scroll to a heading rendered by a react component.
77 */
8- export function ScrollToHash ( ) {
8+ export function ScrollToHashId ( ) {
99 const location = useLocation ( ) ;
1010
1111 useEffect ( ( ) => {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { ScopeTypeType } from "@cursorless/common";
22import React from "react" ;
33import { DynamicTOC } from "../../../components/DynamicTOC" ;
44import { ScopeVisualizer } from "../../../components/ScopeVisualizer" ;
5- import { ScrollToHash } from "../../../components/ScrollToHash " ;
5+ import { ScrollToHashId } from "../../../components/ScrollToHashId " ;
66
77interface Props {
88 scopeTypeType : ScopeTypeType ;
@@ -12,7 +12,7 @@ export function Scopes({ scopeTypeType }: Props) {
1212 return (
1313 < >
1414 < DynamicTOC />
15- < ScrollToHash />
15+ < ScrollToHashId />
1616
1717 < ScopeVisualizer scopeTypeType = { scopeTypeType } />
1818 </ >
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { DynamicTOC } from "../../../components/DynamicTOC" ;
33import { ScopeVisualizer } from "../../../components/ScopeVisualizer" ;
4- import { ScrollToHash } from "../../../components/ScrollToHash " ;
4+ import { ScrollToHashId } from "../../../components/ScrollToHashId " ;
55
66interface Props {
77 languageId : string ;
@@ -11,7 +11,7 @@ export function Language({ languageId }: Props) {
1111 return (
1212 < >
1313 < DynamicTOC />
14- < ScrollToHash />
14+ < ScrollToHashId />
1515
1616 < ScopeVisualizer languageId = { languageId } />
1717 </ >
You can’t perform that action at this time.
0 commit comments