diff --git a/.github/workflows/client_push.yml b/.github/workflows/client_push.yml
index c87a4783..73b951f6 100644
--- a/.github/workflows/client_push.yml
+++ b/.github/workflows/client_push.yml
@@ -34,7 +34,9 @@ jobs:
- name: Create .env file
- run: echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" > ./.env
+ run: |
+ echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" >> ./.env
+ echo "VITE_RUSH_URL=${{ secrets.VITE_RUSH_URL }}" >> ./.env
working-directory: ${{ env.working-directory }}
# build
diff --git a/client/src/pages/RushGame/index.tsx b/client/src/pages/RushGame/index.tsx
index 96185b9e..f526004c 100644
--- a/client/src/pages/RushGame/index.tsx
+++ b/client/src/pages/RushGame/index.tsx
@@ -7,13 +7,19 @@ import Countdown from "@/features/RushGame/RushGameSections/Countdown.tsx";
import FinalResult from "@/features/RushGame/RushGameSections/FinalResult.tsx";
import SelectedCard from "@/features/RushGame/RushGameSections/SelectedCard.tsx";
import { useRushGameContext } from "@/hooks/useRushGameContext.ts";
+import useToast from "@/hooks/useToast.tsx";
+import { writeClipboard } from "@/utils/writeClipboard.ts";
// TODO: 계속 카운트 다운에 맞춰 매초 렌더링 되는 문제 해결
export default function RushGame() {
const { gameState } = useRushGameContext();
+ const { showToast, ToastComponent } = useToast("🔗 링크가 복사되었어요!");
+
+ const handleClickShareButton = () => {
+ writeClipboard(import.meta.env.VITE_RUSH_URL, showToast);
+ };
const renderRushGameContent = () => {
- // console.log(gameState.phase);
switch (gameState.phase) {
case CARD_PHASE.NOT_STARTED:
return
우리 편에 투표할 친구를 불러오세요!
-