[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 RocketChat from '../../../lib/rocketchat';
|
||||||
import { changeLivechatStatus, isOmnichannelStatusAvailable } from '../lib';
|
import { changeLivechatStatus, isOmnichannelStatusAvailable } from '../lib';
|
||||||
import { IUser } from '../../../definitions/IUser';
|
import { IUser } from '../../../definitions/IUser';
|
||||||
|
import Touch from '../../../utils/touch';
|
||||||
|
|
||||||
interface IOmnichannelStatus {
|
interface IOmnichannelStatus {
|
||||||
searching: boolean;
|
searching: boolean;
|
||||||
|
@ -48,7 +49,9 @@ const OmnichannelStatus = memo(({ searching, goQueue, queueSize, inquiryEnabled,
|
||||||
right={() => (
|
right={() => (
|
||||||
<View style={styles.omnichannelRightContainer}>
|
<View style={styles.omnichannelRightContainer}>
|
||||||
{inquiryEnabled ? <UnreadBadge style={styles.queueIcon} unread={queueSize} /> : null}
|
{inquiryEnabled ? <UnreadBadge style={styles.queueIcon} unread={queueSize} /> : null}
|
||||||
|
<Touch theme={theme} onPress={toggleLivechat}>
|
||||||
<Switch value={status} trackColor={SWITCH_TRACK_COLOR} onValueChange={toggleLivechat} />
|
<Switch value={status} trackColor={SWITCH_TRACK_COLOR} onValueChange={toggleLivechat} />
|
||||||
|
</Touch>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue