Skip to content

Commit

Permalink
onPermissionButtonClick type change
Browse files Browse the repository at this point in the history
  • Loading branch information
spylogsster committed Mar 9, 2023
1 parent cbb16e6 commit be2c26d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface UrlElementProps {
host: string
permissionButtonTitle: string
onTextExpand?: () => void
onPermissionButtonClick: PermissionButtonHandler
onPermissionButtonClick?: PermissionButtonHandler
}

function ResourceElement (props: UrlElementProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
interface TreeNodeProps {
host: string
resourceList: string[]
onPermissionButtonClick: PermissionButtonHandler
onPermissionButtonClick?: PermissionButtonHandler
permissionButtonTitle: string
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ export enum ViewType {
Main
}

export type PermissionButtonHandler =
((name: string) => void) | undefined
export type PermissionButtonHandler = ((name: string) => void)

0 comments on commit be2c26d

Please sign in to comment.