From 12b0805a936cb0ba7c15aff97c77439cdc62570f Mon Sep 17 00:00:00 2001 From: suya Date: Thu, 4 May 2023 14:35:49 +0800 Subject: [PATCH] doc: Fix HotkeysProvider in documentation --- documentation/docs/documentation/hotkeys-provider.mdx | 8 ++++---- documentation/docusaurus.config.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/docs/documentation/hotkeys-provider.mdx b/documentation/docs/documentation/hotkeys-provider.mdx index 56527d79..bd732250 100644 --- a/documentation/docs/documentation/hotkeys-provider.mdx +++ b/documentation/docs/documentation/hotkeys-provider.mdx @@ -75,14 +75,14 @@ If your app is highly dynamic and you want to know which scopes are currently ac ## Set initially active scopes -You can set the initially active scopes by passing an array of strings to the `initialScopes` prop of the `HotkeysProvider`. +You can set the initially active scopes by passing an array of strings to the `initiallyActiveScopes` prop of the `HotkeysProvider`. ```jsx import { HotkeysProvider } from 'react-hotkeys-hook'; function App() { return ( - +

My App

@@ -91,6 +91,6 @@ function App() { } ``` -:::info Wildcard scope when using `initialScopes` -If you set the `initialScopes` prop, the wildcard scope will not be active by default. You would have to set `['scopeA', '*']`. +:::info Wildcard scope when using `initiallyActiveScopes` +If you set the `initiallyActiveScopes` prop, the wildcard scope will not be active by default. You would have to set `['scopeA', '*']`. ::: diff --git a/documentation/docusaurus.config.js b/documentation/docusaurus.config.js index 033969f9..be95d79b 100644 --- a/documentation/docusaurus.config.js +++ b/documentation/docusaurus.config.js @@ -128,7 +128,7 @@ module.exports = { sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. editUrl: - 'https://github.com/JohannesKlauss/react-hotkeys-hook/edit/master/documentation/', + 'https://github.com/JohannesKlauss/react-hotkeys-hook/edit/main/documentation/', lastVersion: 'current', versions: { current: {