Skip to content

Commit

Permalink
Use next Script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Feb 21, 2024
1 parent 741e1a9 commit e831b47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/components/Header/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'react-toastify/dist/ReactToastify.css'

import Head from 'next/head'
import Script from 'next/script'
import { ReactElement, useEffect } from 'react'

import { initGA, logPageView } from '../../utils/analytics'
Expand Down Expand Up @@ -30,7 +31,7 @@ const Heading = (): ReactElement => {

<link rel="shortcut icon" href={SITE_FAVICON} />

<script
<Script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossOrigin="anonymous"
Expand Down
3 changes: 2 additions & 1 deletion frontend/components/common/Metadata.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Head from 'next/head'
import Script from 'next/script'
import { ReactElement } from 'react'

import {
Expand Down Expand Up @@ -81,7 +82,7 @@ export const Metadata = ({
<meta property="twitter:card" content={twitterCardType} />

<link rel="shortcut icon" href={SITE_FAVICON} />
<script
<Script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossOrigin="anonymous"
Expand Down

0 comments on commit e831b47

Please sign in to comment.