Skip to content

Commit 1935e16

Browse files
adguernierslax57
andauthored
remove useless imports
Co-authored-by: Jean-Baptiste Kaiser <jb@marmelab.com>
1 parent b5e2848 commit 1935e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/canAccess.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ canAccess({ permissions, resource: 'posts', action: 'export' }); // false
6868
If you just want to know whether users can access any of the resources, you don't have to provide an `action`. For instance, here's how you may display different components depending on resources access rights in the dashboard:
6969

7070
```tsx
71-
import { Admin } from 'react-admin';
71+
import { Admin, usePermissions } from 'react-admin';
7272
import { canAccess } from '@react-admin/ra-rbac';
7373
import { dataProvider } from './dataProvider';
7474

0 commit comments

Comments
 (0)