Skip to content

Commit

Permalink
removing popup
Browse files Browse the repository at this point in the history
  • Loading branch information
navya9singh committed Oct 4, 2024
1 parent 5cfb5a6 commit 2dedb1b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 123 deletions.
118 changes: 0 additions & 118 deletions packages/typescriptlang-org/src/components/Popup.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions packages/typescriptlang-org/src/templates/documentation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Contributors } from "../components/handbook/Contributors"
import { overrideSubNavLinksWithSmoothScroll, updateSidebarOnScroll } from "./scripts/setupSubNavigationSidebar"
import { setupLikeDislikeButtons } from "./scripts/setupLikeDislikeButtons"
import { DislikeUnfilledSVG, LikeUnfilledSVG } from "../components/svgs/documentation"
import { Popup, useQuickInfoPopup } from "../components/Popup"
import Helmet from "react-helmet"

type Props = {
Expand All @@ -45,9 +44,6 @@ const HandbookTemplate: React.FC<Props> = (props) => {
return <div></div>
}

// Note: This can, and does, change triggering re-renders
const showPopup = useQuickInfoPopup(props.pageContext.lang)

const [deprecationURL, setDeprecationURL] = useState(post.frontmatter!.deprecated_by)

const i = createInternational<typeof handbookCopy>(useIntl())
Expand Down Expand Up @@ -182,7 +178,6 @@ const HandbookTemplate: React.FC<Props> = (props) => {
<Contributors lang={props.pageContext.lang} i={i} path={props.pageContext.repoPath} lastEdited={props.pageContext.modifiedTime} />
</div>
</section>
<Popup {...showPopup} />
</Layout>
)
}
Expand Down

0 comments on commit 2dedb1b

Please sign in to comment.