Fix usePermission usage
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
committed by
Joe Porpeglia
parent
3e0bbeda8b
commit
c84d4ad373
@@ -39,7 +39,9 @@ export type RegisterExistingButtonProps = {
|
||||
*/
|
||||
export const RegisterExistingButton = (props: RegisterExistingButtonProps) => {
|
||||
const { title, to } = props;
|
||||
const { allowed } = usePermission(catalogEntityCreatePermission);
|
||||
const { allowed } = usePermission({
|
||||
permission: catalogEntityCreatePermission,
|
||||
});
|
||||
const isXSScreen = useMediaQuery<BackstageTheme>(theme =>
|
||||
theme.breakpoints.down('xs'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user