feat: Update to API references look and feel (#343)
Co-authored-by: Vadim Smirnov <smirnou.vadzim@gmail.com> Co-authored-by: zakariasaad <zakaria.elas@gmail.com> Co-authored-by: Vilfred Sikker <vilfredsikker@gmail.com> Co-authored-by: olivermrbl <oliver@mrbltech.com>
This commit is contained in:
co-authored by
Vadim Smirnov
zakariasaad
Vilfred Sikker
olivermrbl
parent
40400b483c
commit
143f06aa39
@@ -0,0 +1,16 @@
|
||||
import React from "react"
|
||||
import { NavigationProvider } from "./src/context/navigation-context"
|
||||
|
||||
export const onServiceWorkerUpdateReady = () => {
|
||||
const answer = window.confirm(
|
||||
"We have updated the docs site. Reload to display the latest version?"
|
||||
)
|
||||
|
||||
if (answer) {
|
||||
window.location.reload()
|
||||
}
|
||||
}
|
||||
|
||||
export const wrapPageElement = ({ element }) => {
|
||||
return <NavigationProvider>{element}</NavigationProvider>
|
||||
}
|
||||
Reference in New Issue
Block a user