Skip to content

Commit

Permalink
fix: export PermissionProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
synzhang committed Mar 6, 2022
1 parent 2a0d995 commit b50b989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactNode, useCallback } from 'react'
import { usePermission } from './Context'
import { PermissionProvider, usePermission } from './Context'

export enum ROLES {
ADMIN = 'ADMIN',
Expand Down Expand Up @@ -64,5 +64,5 @@ const Permission = ({
return <>{canAccess ? children : forbiddenFallback}</>
}

export { usePermission }
export { PermissionProvider }
export default Permission

0 comments on commit b50b989

Please sign in to comment.