Skip to content

Commit

Permalink
add bot to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
ranyabel committed Jul 17, 2024
1 parent 24067e1 commit 9e79b27
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions website/src/theme/Footer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React, { useEffect } from "react";
import Footer from "@theme-original/Footer";

export default function FooterWrapper(props) {
useEffect(() => {
const script = document.createElement("script");
script.id = "ze-snippet";
script.src =
"https://static.zdassets.com/ekr/snippet.js?key=3292009a-b672-4683-8691-2bf2475a3398";
document.body.appendChild(script);

return () => {
document.body.removeChild(script);
};
}, []);

return (
<>
<Footer {...props} />
</>
);
}

0 comments on commit 9e79b27

Please sign in to comment.