mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
SDA-4241 - Move click handler on to button (#1905)
Signed-off-by: Kiran Niranjan <kiran.niranjan@symphony.com>
This commit is contained in:
parent
f8ac374c54
commit
695db74438
@ -205,22 +205,20 @@ export default class CallNotification extends React.Component<
|
||||
</div>
|
||||
<div className='actions'>
|
||||
<button
|
||||
data-testid='CALL_NOTIFICATION_REJECT_BUTTON'
|
||||
className={classNames('decline', {
|
||||
'call-type-other': callType === 'OTHER',
|
||||
})}
|
||||
>
|
||||
<div
|
||||
data-testid='CALL_NOTIFICATION_REJECT_BUTTON'
|
||||
className='label'
|
||||
onClick={this.eventHandlers.onReject(id)}
|
||||
>
|
||||
{rejectText}
|
||||
</div>
|
||||
<div className='label'>{rejectText}</div>
|
||||
</button>
|
||||
<button
|
||||
data-testid='CALL_NOTIFICATION_ACCEPT_BUTTON'
|
||||
className={classNames('accept', {
|
||||
'call-type-other': callType === 'OTHER',
|
||||
})}
|
||||
onClick={this.eventHandlers.onAccept(id)}
|
||||
>
|
||||
{actionIconUrl ? (
|
||||
<img
|
||||
@ -238,13 +236,7 @@ export default class CallNotification extends React.Component<
|
||||
className='profile-picture-badge'
|
||||
/>
|
||||
)}
|
||||
<div
|
||||
data-testid='CALL_NOTIFICATION_ACCEPT_BUTTON'
|
||||
className='label'
|
||||
onClick={this.eventHandlers.onAccept(id)}
|
||||
>
|
||||
{acceptText}
|
||||
</div>
|
||||
<div className='label'>{acceptText}</div>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user