Skip to content

Commit

Permalink
refactor: PinInput virtualKeyboardValue 반환 타입 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
bytrustu committed Apr 5, 2024
1 parent 50e2161 commit 8910455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shared/components/Input/PinInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const PinInputField = forwardRef<
const handleFocus = async (e: FocusEvent<HTMLInputElement>) => {
if (enableVirtualKeyboard) {
const virtualKeyboardValues = CARD_PASSWORD_NUMBERS.map(String);
const virtualKeyboardValue = await showModal(
const virtualKeyboardValue = await showModal<string>(
<VirtualKeyboardBottomSheet values={virtualKeyboardValues} shuffle />,
{
closeOverlayClick: true,
Expand Down
4 changes: 2 additions & 2 deletions src/shared/components/Overlay/OverlayProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export const OverlayProvider = ({ children }: PropsWithChildren) => {
<OverlayContext.Provider value={openOverlay}>
{children}
{overlays.map(({ content, options, key }, index) => {
const isHidden = index < overlays.length - 1;
const overlayStyle = isHidden ? { display: 'none' } : {};
const hiddenStatus = index < overlays.length - 1;
const overlayStyle = hiddenStatus ? { display: 'none' } : {};
const handleOverlayClose = () => closeOverlay(key);

const handleOverlaySubmit = (submitResult: OverlaySubmitResult) => submitOverlay(key, submitResult);
Expand Down

0 comments on commit 8910455

Please sign in to comment.