chore: ref to shadowDomRef

This commit is contained in:
Bilawal Hameed
2020-07-03 16:26:54 +02:00
parent 07e5d2ce8a
commit 9e4c092d6b
@@ -69,7 +69,7 @@ export const Reader = () => {
const location = useLocation();
const { componentId, '*': path } = useParams();
const [ref, shadowRoot] = useShadowDom();
const [shadowDomRef, shadowRoot] = useShadowDom();
const navigate = useNavigate();
const normalizedUrl = new URLFormatter(
`${docStorageURL}${location.pathname.replace('/docs', '')}`,
@@ -141,7 +141,7 @@ export const Reader = () => {
return (
<>
<TechDocsPageWrapper title={componentId} subtitle={componentId}>
<div ref={ref} />
<div ref={shadowDomRef} />
</TechDocsPageWrapper>
</>
);