From 3fa3008b881fcd08430bf0752cc648202ff9c550 Mon Sep 17 00:00:00 2001 From: Pablo Gracia <46579253+PabloGracia@users.noreply.github.com> Date: Mon, 12 Aug 2019 19:21:46 +0200 Subject: [PATCH] Fix index.d.ts for *reactour* by correcting typo (#37438) * Fixed the declaration file for the 'showButtons' prop, as it was previously 'showButton' and it couldn't be used effectively with Typescript * fix-reactour-showButtons update test --- types/reactour/index.d.ts | 2 +- types/reactour/reactour-tests.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/reactour/index.d.ts b/types/reactour/index.d.ts index c9a4fa869e..6cf657da9b 100644 --- a/types/reactour/index.d.ts +++ b/types/reactour/index.d.ts @@ -197,7 +197,7 @@ export interface ReactourProps { * Show/Hide _Helper_ Navigation buttons * @default true */ - showButton?: boolean; + showButtons?: boolean; /** * Show/Hide _Helper_ Close button diff --git a/types/reactour/reactour-tests.tsx b/types/reactour/reactour-tests.tsx index de92bebc91..b69dacd4ea 100644 --- a/types/reactour/reactour-tests.tsx +++ b/types/reactour/reactour-tests.tsx @@ -131,7 +131,7 @@ class CustomTour extends React.Component<{}, { isTourOpen: boolean }> { scrollDuration={100} scrollOffset={1} showNumber={false} - showButton={false} + showButtons={false} showCloseButton={false} showNavigation={false} showNavigationNumber={false}