Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleNotification = notification => {
if (notification.additionalData.foreground && isIOS()) {
// on iOS the the notification does not appear if the application is in foreground
Alerter.info(notification.title + ' : ' + notification.message)
}
if (flag('debug')) {
// eslint-disable-next-line no-console
console.log('Received notification', notification)
}
if (
!notification.additionalData.foreground &&
notification.additionalData.route
) {
hashHistory.push(notification.additionalData.route)
}
}
import React from 'react'
import styles from 'ducks/pin/styles.styl'
import cx from 'classnames'
import { isIOS } from 'cozy-device-helper'
const shouldDisplayIOSVariant = isIOS()
const PinButton = ({ className, isText, ...props }) => {
return (
<button>
)
}</button>