Skip to content

Commit

Permalink
remove return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Mar 3, 2024
1 parent dae728e commit d84d2a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface IsAdminProps {
export const IsAdmin: React.FC<IsAdminProps> = ({
fallback = null,
children,
}): null | React.ReactNode => {
}) => {
const hasAdminPermissions: boolean = useSelect(
(select) => select('core').canUser('read', 'users?roles=1'),
[],
Expand Down

0 comments on commit d84d2a1

Please sign in to comment.