mirror of
https://github.com/desktop/desktop
synced 2024-10-30 06:03:10 +00:00
Add comments to new render props
This commit is contained in:
parent
d3e8913885
commit
b041f901be
2 changed files with 10 additions and 0 deletions
|
@ -67,6 +67,11 @@ interface IDialogProps {
|
|||
*/
|
||||
readonly title?: string | JSX.Element
|
||||
|
||||
/**
|
||||
* An optional element to render to the right of the dialog title.
|
||||
* This can be used to render additional controls that don't belong to the
|
||||
* heading element itself, but are still part of the header (visually).
|
||||
*/
|
||||
readonly renderHeaderAccessory?: () => JSX.Element
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,6 +19,11 @@ interface IDialogHeaderProps {
|
|||
/** Whether or not the header should show a close button */
|
||||
readonly showCloseButton?: boolean
|
||||
|
||||
/**
|
||||
* An optional element to render to the right of the dialog title.
|
||||
* This can be used to render additional controls that don't belong to the
|
||||
* heading element itself, but are still part of the header (visually).
|
||||
*/
|
||||
readonly renderAccessory?: () => JSX.Element
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue