add copy link and edit on github buttons

This commit is contained in:
Pascal Fischer
2023-07-05 10:51:34 +02:00
parent 7815df63ff
commit 25e20ed56d
4 changed files with 71 additions and 0 deletions

View File

@@ -9,6 +9,9 @@ import '@/styles/tailwind.css'
import 'focus-visible'
import {Layout} from "@/components/Layout";
import {slugifyWithCounter} from "@sindresorhus/slugify";
import {ToastContainer} from "react-toastify";
import 'react-toastify/dist/ReactToastify.css';
import {dom} from "@fortawesome/fontawesome-svg-core";
function onRouteChange() {
useMobileNavigationStore.getState().close()
@@ -23,6 +26,7 @@ export default function App({ Component, pageProps }) {
return (
<>
<Head>
<style>{dom.css()}</style>
{router.route.startsWith('/ipa') ?
<title>{`${pageProps.title} - NetBird API`}</title> : <title>{`${pageProps.title} - NetBird Docs`}</title>
}
@@ -33,6 +37,7 @@ export default function App({ Component, pageProps }) {
<Component {...pageProps} />
</Layout>
</MDXProvider>
<ToastContainer />
</>
)
}