permission-react: use object instead of tuple for usePermission args

Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com>
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
Joe Porpeglia
2022-03-16 17:14:07 -04:00
committed by Joe Porpeglia
parent d88b5b3009
commit 91703e8086
4 changed files with 23 additions and 12 deletions
@@ -63,7 +63,9 @@ export const ScaffolderPageContents = ({
},
};
const { allowed } = usePermission(catalogEntityCreatePermission);
const { allowed } = usePermission({
permission: catalogEntityCreatePermission,
});
return (
<Page themeId="home">