[FIX] Omnichannel's "Availability" toggle button is hard to interact with on Android devices (#3952)
* first commit * change touchable to touch
This commit is contained in:
parent
49c92cfa7b
commit
c483abfa60
|
@ -9,6 +9,7 @@ import UnreadBadge from '../../../presentation/UnreadBadge';
|
|||
import RocketChat from '../../../lib/rocketchat';
|
||||
import { changeLivechatStatus, isOmnichannelStatusAvailable } from '../lib';
|
||||
import { IUser } from '../../../definitions/IUser';
|
||||
import Touch from '../../../utils/touch';
|
||||
|
||||
interface IOmnichannelStatus {
|
||||
searching: boolean;
|
||||
|
@ -48,7 +49,9 @@ const OmnichannelStatus = memo(({ searching, goQueue, queueSize, inquiryEnabled,
|
|||
right={() => (
|
||||
<View style={styles.omnichannelRightContainer}>
|
||||
{inquiryEnabled ? <UnreadBadge style={styles.queueIcon} unread={queueSize} /> : null}
|
||||
<Switch value={status} trackColor={SWITCH_TRACK_COLOR} onValueChange={toggleLivechat} />
|
||||
<Touch theme={theme} onPress={toggleLivechat}>
|
||||
<Switch value={status} trackColor={SWITCH_TRACK_COLOR} onValueChange={toggleLivechat} />
|
||||
</Touch>
|
||||
</View>
|
||||
)}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue