Refactor(StoreCard): Fix the bug that open android emulator automatically
Fix the bug that open android emulator automatically when click mask
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
gap: 4px;
|
gap: 4px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
z-index: 100;
|
||||||
|
|
||||||
> *:hover {
|
> *:hover {
|
||||||
color: constants.$font-secondary-color;
|
color: constants.$font-secondary-color;
|
||||||
|
|||||||
@@ -75,10 +75,9 @@ const StoreCard = ({
|
|||||||
}
|
}
|
||||||
if (platform === 'ANDROID') {
|
if (platform === 'ANDROID') {
|
||||||
void modal.confirm({
|
void modal.confirm({
|
||||||
|
centered: true,
|
||||||
icon: <Icon style={{ color: COLOR_MAIN }} component={IconOxygenInfo} />,
|
icon: <Icon style={{ color: COLOR_MAIN }} component={IconOxygenInfo} />,
|
||||||
title: 'Android 端',
|
title: 'Android 端',
|
||||||
centered: true,
|
|
||||||
maskClosable: true,
|
|
||||||
content: (
|
content: (
|
||||||
<FlexBox className={'android-qrcode'}>
|
<FlexBox className={'android-qrcode'}>
|
||||||
<AntdQRCode
|
<AntdQRCode
|
||||||
@@ -147,10 +146,9 @@ const StoreCard = ({
|
|||||||
const handleOnAndroidBtnClick = (e: MouseEvent<HTMLDivElement>) => {
|
const handleOnAndroidBtnClick = (e: MouseEvent<HTMLDivElement>) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
void modal.confirm({
|
void modal.confirm({
|
||||||
|
centered: true,
|
||||||
icon: <Icon style={{ color: COLOR_MAIN }} component={IconOxygenInfo} />,
|
icon: <Icon style={{ color: COLOR_MAIN }} component={IconOxygenInfo} />,
|
||||||
title: 'Android 端',
|
title: 'Android 端',
|
||||||
centered: true,
|
|
||||||
maskClosable: true,
|
|
||||||
content: (
|
content: (
|
||||||
<FlexBox className={'android-qrcode'}>
|
<FlexBox className={'android-qrcode'}>
|
||||||
<AntdQRCode
|
<AntdQRCode
|
||||||
|
|||||||
Reference in New Issue
Block a user