[251022] fix: VoiceInputOverlay Bubble Search and 코드정리
🕐 커밋 시간: 2025. 10. 22. 13:07:25 📊 변경 통계: • 총 파일: 5개 • 추가: +163줄 • 삭제: -142줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/v2/ShopNowButton.jsx ~ com.twin.app.shoptime/src/views/SearchPanel/VoiceInputOverlay/VoiceInputOverlay.jsx ~ com.twin.app.shoptime/src/views/SearchPanel/VoiceInputOverlay/modes/VoiceApiError.jsx ~ com.twin.app.shoptime/src/views/SearchPanel/VoiceInputOverlay/modes/VoicePromptScreen.jsx ~ com.twin.app.shoptime/src/views/SearchPanel/VoiceInputOverlay/modes/VoiceResponse.jsx 🔧 함수 변경 내용: 📄 com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/v2/ShopNowButton.jsx (javascript): ✅ Added: handleSpotlightUp() 📄 com.twin.app.shoptime/src/views/SearchPanel/VoiceInputOverlay/VoiceInputOverlay.jsx (javascript): ❌ Deleted: clearAllTimers() 📄 com.twin.app.shoptime/src/views/SearchPanel/VoiceInputOverlay/modes/VoiceApiError.jsx (javascript): ✅ Added: getErrorMessage(), getErrorDetails() 🔄 Modified: Spottable() ❌ Deleted: getErrorMessage(), getErrorDetails() 📄 com.twin.app.shoptime/src/views/SearchPanel/VoiceInputOverlay/modes/VoicePromptScreen.jsx (javascript): 🔄 Modified: SpotlightContainerDecorator() ❌ Deleted: handleClick() 🔧 주요 변경 내용: • API 서비스 레이어 개선
This commit is contained in:
@@ -9,17 +9,18 @@ import css from './ShopNowButton.module.less';
|
||||
const SpottableDiv = Spottable('div');
|
||||
|
||||
export default function ShopNowButton({ onClick }) {
|
||||
const handleSpotlightUp = (e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
Spotlight.focus(SpotlightIds.PLAYER_BACK_BUTTON);
|
||||
};
|
||||
return (
|
||||
<div className={css.container}>
|
||||
<SpottableDiv
|
||||
className={css.shopNowButton}
|
||||
onClick={onClick}
|
||||
spotlightId="below-tab-shop-now-button"
|
||||
onSpotlightUp={(e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
Spotlight.focus(SpotlightIds.PLAYER_BACK_BUTTON);
|
||||
}}
|
||||
onSpotlightUp={handleSpotlightUp}
|
||||
>
|
||||
<span className={css.buttonText}>SHOP NOW</span>
|
||||
</SpottableDiv>
|
||||
|
||||
Reference in New Issue
Block a user