[MobileSendPopUp] SHOPTIME-2631
- inputContainer 분리
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
|||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
|
|
||||||
import { off, on } from "@enact/core/dispatcher";
|
import { off, on } from "@enact/core/dispatcher";
|
||||||
import { Spotlight } from "@enact/spotlight";
|
import spotlight, { Spotlight } from "@enact/spotlight";
|
||||||
import { SpotlightContainerDecorator } from "@enact/spotlight/SpotlightContainerDecorator";
|
import { SpotlightContainerDecorator } from "@enact/spotlight/SpotlightContainerDecorator";
|
||||||
import { Spottable } from "@enact/spotlight/Spottable";
|
import { Spottable } from "@enact/spotlight/Spottable";
|
||||||
|
|
||||||
@@ -45,6 +45,11 @@ const Container = SpotlightContainerDecorator(
|
|||||||
"div"
|
"div"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const InputContainer = SpotlightContainerDecorator(
|
||||||
|
{ enterTo: "last-focused" },
|
||||||
|
"div"
|
||||||
|
);
|
||||||
|
|
||||||
const SpottableComponent = Spottable("div");
|
const SpottableComponent = Spottable("div");
|
||||||
|
|
||||||
export default function MobileSendPopUp({
|
export default function MobileSendPopUp({
|
||||||
@@ -250,6 +255,7 @@ export default function MobileSendPopUp({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
spotlight.focus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -530,7 +536,7 @@ export default function MobileSendPopUp({
|
|||||||
</div>
|
</div>
|
||||||
<div className={css.smsArea}>
|
<div className={css.smsArea}>
|
||||||
<div className={css.smsContainer}>
|
<div className={css.smsContainer}>
|
||||||
<Container className={css.smsNumLayer}>
|
<InputContainer className={css.smsNumLayer}>
|
||||||
<SpottableComponent
|
<SpottableComponent
|
||||||
className={css.inputNum}
|
className={css.inputNum}
|
||||||
onClick={handleInputClick}
|
onClick={handleInputClick}
|
||||||
@@ -538,16 +544,20 @@ export default function MobileSendPopUp({
|
|||||||
>
|
>
|
||||||
{mobileNumber}
|
{mobileNumber}
|
||||||
</SpottableComponent>
|
</SpottableComponent>
|
||||||
{keyPadOff ? (
|
</InputContainer>
|
||||||
|
{keyPadOff ? (
|
||||||
|
<Container>
|
||||||
<HistoryPhoneNumber
|
<HistoryPhoneNumber
|
||||||
handleClickSelect={handleClickSelect}
|
handleClickSelect={handleClickSelect}
|
||||||
handleDelete={handleDelete}
|
handleDelete={handleDelete}
|
||||||
recentSentNumber={recentSentNumber}
|
recentSentNumber={recentSentNumber}
|
||||||
/>
|
/>
|
||||||
) : (
|
</Container>
|
||||||
|
) : (
|
||||||
|
<Container>
|
||||||
<SMSNumKeyPad onKeyDown={numKeypadClicked} />
|
<SMSNumKeyPad onKeyDown={numKeypadClicked} />
|
||||||
)}
|
</Container>
|
||||||
</Container>
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={css.instruction}>
|
<div className={css.instruction}>
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
.smsContainer {
|
.smsContainer {
|
||||||
width: 571px;
|
width: 571px;
|
||||||
flex: none;
|
flex: none;
|
||||||
.flex(@justifyCenter: space-between, @alignCenter: flex-start);
|
.flex(@justifyCenter: space-between, @alignCenter: flex-start,@direction:column);
|
||||||
.inputNum {
|
.inputNum {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 18px 5px 18px 20px;
|
padding: 18px 5px 18px 20px;
|
||||||
|
|||||||
Reference in New Issue
Block a user