From 316f9995684aac52ac592c300cdd1ff235b074ec Mon Sep 17 00:00:00 2001 From: Dimitri KOPRIWA Date: Mon, 25 Mar 2019 12:20:25 +0700 Subject: [PATCH] doc(WithPermissions): Update example, using render instead of children https://stackoverflow.com/questions/55297559/react-admin-what-is-authparams-for?answertab=active#tab-top --- packages/ra-core/src/auth/WithPermissions.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/ra-core/src/auth/WithPermissions.tsx b/packages/ra-core/src/auth/WithPermissions.tsx index 58782012352..6524ba10f94 100644 --- a/packages/ra-core/src/auth/WithPermissions.tsx +++ b/packages/ra-core/src/auth/WithPermissions.tsx @@ -64,9 +64,11 @@ const isEmptyChildren = children => Children.count(children) === 0; * * const customRoutes = [ * - * - * - * + * } + * /> * } /> * ]; * const App = () => (