-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from timantmedia/docusaurus-swizzle-footer
Docusaurus swizzle footer
- Loading branch information
Showing
9 changed files
with
107 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,3 +135,4 @@ You can also ask your questions in [Discussions Q&A](https://github.com/orgs/ant | |
## Contact | ||
|
||
For more information and to read our latest [blog posts](https://antmedia.io/blog/) visit [antmedia.io](https://antmedia.io/). If you have any questions, please send an email to [[email protected]](mailto:[email protected]). Support inquiries should go to [[email protected]](mailto:[email protected]). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React, {useEffect} from 'react'; | ||
import Footer from '@theme-original/Footer'; | ||
|
||
import { FeedbackButton } from 'pushfeedback-react'; | ||
import { defineCustomElements } from 'pushfeedback/loader'; | ||
import 'pushfeedback/dist/pushfeedback/pushfeedback.css'; | ||
|
||
export default function FooterWrapper(props) { | ||
|
||
useEffect(() => { | ||
if (typeof window !== 'undefined') { | ||
defineCustomElements(window); | ||
} | ||
}, []); | ||
|
||
return ( | ||
<> | ||
<div style={{"width": "220px", "margin":"15px auto", "padding": "1em"}}> | ||
<FeedbackButton project="7i7jw6ovwx" button-position="center-center" modal-position="bottom-right" button-style="dark">Share feedback</FeedbackButton> | ||
</div> | ||
<Footer {...props} /> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters