mirror of https://github.com/jitsi/jitsi-meet
parent
2becfd026b
commit
379bad0ce6
@ -1,50 +1,50 @@ |
||||
import PropTypes from 'prop-types'; |
||||
|
||||
export const DIALOG_PROP_TYPES = { |
||||
export type DialogPropTypes = { |
||||
|
||||
/** |
||||
* Whether cancel button is disabled. Enabled by default. |
||||
*/ |
||||
cancelDisabled: PropTypes.bool, |
||||
cancelDisabled: boolean, |
||||
|
||||
/** |
||||
* Optional i18n key to change the cancel button title. |
||||
*/ |
||||
cancelTitleKey: PropTypes.string, |
||||
cancelTitleKey: String, |
||||
|
||||
/** |
||||
* Is ok button enabled/disabled. Enabled by default. |
||||
*/ |
||||
okDisabled: PropTypes.bool, |
||||
okDisabled: boolean, |
||||
|
||||
/** |
||||
* Optional i18n key to change the ok button title. |
||||
*/ |
||||
okTitleKey: PropTypes.string, |
||||
okTitleKey: String, |
||||
|
||||
/** |
||||
* The handler for onCancel event. |
||||
*/ |
||||
onCancel: PropTypes.func, |
||||
onCancel: Function, |
||||
|
||||
/** |
||||
* The handler for the event when submitting the dialog. |
||||
*/ |
||||
onSubmit: PropTypes.func, |
||||
onSubmit: Function, |
||||
|
||||
/** |
||||
* Used to obtain translations in children classes. |
||||
*/ |
||||
t: PropTypes.func, |
||||
t: Function, |
||||
|
||||
/** |
||||
* Key to use for showing a title. |
||||
*/ |
||||
titleKey: PropTypes.string, |
||||
titleKey: String, |
||||
|
||||
/** |
||||
* The string to use as a title instead of {@code titleKey}. If a truthy |
||||
* value is specified, it takes precedence over {@code titleKey} i.e. |
||||
* the latter is unused. |
||||
*/ |
||||
titleString: PropTypes.string |
||||
titleString: String |
||||
}; |
||||
|
Loading…
Reference in new issue