fix(notifications) remove unused isDismissAllowed prop
This commit is contained in:
parent
e6ce5fd75f
commit
01bd18b86a
|
@ -61,11 +61,6 @@ export type Props = {
|
||||||
*/
|
*/
|
||||||
icon?: String,
|
icon?: String,
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not the dismiss button should be displayed.
|
|
||||||
*/
|
|
||||||
isDismissAllowed: boolean,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum lines of the description.
|
* Maximum lines of the description.
|
||||||
*/
|
*/
|
||||||
|
@ -116,8 +111,7 @@ export default class AbstractNotification<P: Props> extends Component<P> {
|
||||||
* @static
|
* @static
|
||||||
*/
|
*/
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
appearance: NOTIFICATION_TYPE.NORMAL,
|
appearance: NOTIFICATION_TYPE.NORMAL
|
||||||
isDismissAllowed: true
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -32,8 +32,6 @@ class Notification extends AbstractNotification<Props> {
|
||||||
* @returns {ReactElement}
|
* @returns {ReactElement}
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
const { isDismissAllowed } = this.props;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
pointerEvents = 'box-none'
|
pointerEvents = 'box-none'
|
||||||
|
@ -47,14 +45,11 @@ class Notification extends AbstractNotification<Props> {
|
||||||
}
|
}
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
{
|
<TouchableOpacity onPress = { this._onDismissed }>
|
||||||
isDismissAllowed
|
<Icon
|
||||||
&& <TouchableOpacity onPress = { this._onDismissed }>
|
src = { IconClose }
|
||||||
<Icon
|
style = { styles.dismissIcon } />
|
||||||
src = { IconClose }
|
</TouchableOpacity>
|
||||||
style = { styles.dismissIcon } />
|
|
||||||
</TouchableOpacity>
|
|
||||||
}
|
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue