Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Test code for requiring user confirmation... needs deeper integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Mar 6, 2017
1 parent f36542f commit f03705f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ function initState(MyState)
})
}

function getConfirmation(message, callback) {
console.log("BrowserRouter getConfirmation():", message)
callback()
}

function renderApp(MyRoot)
{
var WrappedRoot = (
<BrowserRouter>
<BrowserRouter getUserConfirmation={getConfirmation}>
<ApolloProvider client={apolloClient} store={reduxStore}>
<IntlProvider locale={currentLocale} messages={messages}>
<MyRoot/>
Expand Down

0 comments on commit f03705f

Please sign in to comment.