Skip to content

Commit

Permalink
Merge pull request #61 from softeerbootcamp4th/develop
Browse files Browse the repository at this point in the history
[Deploy] version 0.0.7
  • Loading branch information
minani-0621 authored Aug 23, 2024
2 parents 57b7ab5 + 457e121 commit 0ce15fb
Show file tree
Hide file tree
Showing 20 changed files with 538 additions and 298 deletions.
12 changes: 7 additions & 5 deletions Caecae/src/components/PhoneNumberOverlay/PhoneNumberOverlay.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { ChangeEventHandler, useEffect, useState } from "react";
import { action } from "../../jobs/Overlay/OverlayWork";
import { store } from "../../shared/Hyundux";
import { Action, store } from "../../shared/Hyundux";

interface PhoneNumberOverlayProps {
type: "findCasper" | "raceCasper";
onClick?: (phoneNumber: string) => void;
submitNumber?: (
phoneNumber: string,
action: (amount: number) => Action
) => void;
}

const PhoneNumberOverlay = ({
type,
onClick = () => {},
submitNumber = () => {},
}: PhoneNumberOverlayProps) => {
const [timeLeft, setTimeLeft] = useState(3 * 60); // 3분을 초 단위로 변환
const [phoneNumber, setPhoneNumber] = useState("");
Expand Down Expand Up @@ -159,8 +162,7 @@ const PhoneNumberOverlay = ({
<div
onClick={() => {
const parameter = phoneNumber.replace(/-/g, "");
onClick(parameter);
store.dispatch(action.nextPage());
submitNumber(parameter, action.nextPage);
}}
className="bg-[#002C5F] h-[12%] flex items-center justify-center hover:cursor-pointer"
>
Expand Down
Loading

0 comments on commit 0ce15fb

Please sign in to comment.