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:
committed by
Joe Porpeglia
parent
d88b5b3009
commit
91703e8086
@@ -63,7 +63,9 @@ export const ScaffolderPageContents = ({
|
||||
},
|
||||
};
|
||||
|
||||
const { allowed } = usePermission(catalogEntityCreatePermission);
|
||||
const { allowed } = usePermission({
|
||||
permission: catalogEntityCreatePermission,
|
||||
});
|
||||
|
||||
return (
|
||||
<Page themeId="home">
|
||||
|
||||
Reference in New Issue
Block a user