+
{item.index}
{item.time}
diff --git a/src/app/(protected)/action/start/[taskId]/ActionStartPageClient.tsx b/src/app/(protected)/action/start/[taskId]/ActionStartPageClient.tsx
index a4317bf1..b73627df 100644
--- a/src/app/(protected)/action/start/[taskId]/ActionStartPageClient.tsx
+++ b/src/app/(protected)/action/start/[taskId]/ActionStartPageClient.tsx
@@ -1,48 +1,48 @@
-'use client';
+"use client";
-import { useWebViewMessage } from '@/hooks/useWebViewMessage';
-import type { TaskResponse } from '@/types/task';
-import { formatKoreanDateTime } from '@/utils/dateFormat';
-import { useRouter } from 'next/navigation';
+import { useWebViewMessage } from "@/hooks/useWebViewMessage";
+import type { TaskResponse } from "@/types/task";
+import { formatKoreanDateTime } from "@/utils/dateFormat";
+import { useRouter } from "next/navigation";
-import { useTaskProgressStore } from '@/store';
-import { useEffect } from 'react';
-import ActionCard from './_component/ActionCard';
-import ActionStartDrawer from './_component/ActionStartDrawer';
-import ActionStartHeader from './_component/ActionStartHeader';
-import ScheduleCard from './_component/ScheduleCard';
+import { useTaskProgressStore } from "@/store";
+import { useEffect } from "react";
+import ActionCard from "./_component/ActionCard";
+import ActionStartDrawer from "./_component/ActionStartDrawer";
+import ActionStartHeader from "./_component/ActionStartHeader";
+import ScheduleCard from "./_component/ScheduleCard";
interface Props {
- initialTask: TaskResponse;
+ initialTask: TaskResponse;
}
export default function ActionStartPageClient({ initialTask }: Props) {
- const router = useRouter();
- const { handleTakePicture } = useWebViewMessage(router);
- const { setCurrentTask } = useTaskProgressStore();
+ const router = useRouter();
+ const { handleTakePicture } = useWebViewMessage(router);
+ const { setCurrentTask } = useTaskProgressStore();
- useEffect(() => {
- setCurrentTask(initialTask);
- }, [initialTask, setCurrentTask]);
+ useEffect(() => {
+ setCurrentTask(initialTask);
+ }, [initialTask, setCurrentTask]);
- return (
-
-
-
+ return (
+
+
+
-
- handleTakePicture(initialTask?.triggerAction ?? '')
- }
- smallActionTitle={initialTask?.triggerAction}
- dueDate={initialTask?.dueDatetime}
- taskId={initialTask?.id?.toString()}
- />
-
- );
+
+ handleTakePicture(initialTask?.triggerAction ?? "")
+ }
+ smallActionTitle={initialTask?.triggerAction}
+ dueDate={initialTask?.dueDatetime}
+ taskId={initialTask?.id?.toString()}
+ />
+
+ );
}
diff --git a/src/app/(protected)/action/start/[taskId]/_component/ActionCard.tsx b/src/app/(protected)/action/start/[taskId]/_component/ActionCard.tsx
index ae9c73b7..c211459d 100644
--- a/src/app/(protected)/action/start/[taskId]/_component/ActionCard.tsx
+++ b/src/app/(protected)/action/start/[taskId]/_component/ActionCard.tsx
@@ -1,31 +1,37 @@
-import { Badge } from '@/components/component/Badge';
+import { Badge } from "@/components/component/Badge";
+import type { CSSProperties } from "react";
interface ActionCardProps {
- title?: string;
- isCompleted?: boolean;
- onClick?: () => void;
- variant?: 'gradient1' | 'gradient2';
+ title?: string;
+ isCompleted?: boolean;
+ onClick?: () => void;
+ variant?: "gradient1" | "gradient2";
+ style?: CSSProperties;
}
export default function ActionCard({
- title,
- isCompleted = false,
- onClick,
- variant = 'gradient1',
+ title,
+ isCompleted = false,
+ onClick,
+ variant = "gradient1",
+ style,
}: ActionCardProps) {
- return (
-
- );
+ return (
+
+ );
}
diff --git a/src/app/(protected)/action/start/[taskId]/_component/ActionStartDrawer.tsx b/src/app/(protected)/action/start/[taskId]/_component/ActionStartDrawer.tsx
index e09c6693..1b8b53b0 100644
--- a/src/app/(protected)/action/start/[taskId]/_component/ActionStartDrawer.tsx
+++ b/src/app/(protected)/action/start/[taskId]/_component/ActionStartDrawer.tsx
@@ -79,7 +79,7 @@ export default function ActionStartDrawer({
return (
-
+
<>
@@ -95,17 +95,17 @@ export default function ActionStartDrawer({
-
+
작은 행동을 사진으로 찍어주세요
-
+
{isRetried && (
이번 기회는 놓치지 마세요!
)}
-
+