show credits
This commit is contained in:
1 parent
d59304f833
commit
49b4178453
8 files changed
+115
-13
No files matched your search
@@ -6,6 +6,8 @@ import { useRouter } from "next/navigation";
|
||||
import PosterDropzone from "@/components/poster-dropzone";
|
||||
import { useRequireLogin } from "@/components/auth-gate";
|
||||
import { apiFetch } from "@/lib/api";
|
||||
import { refreshMe } from "@/lib/auth";
|
||||
import { FEATURES } from "@/lib/features";
|
||||
|
||||
export default function HomePage() {
|
||||
const router = useRouter();
|
||||
@@ -26,6 +28,8 @@ export default function HomePage() {
|
||||
fd.append("poster", file);
|
||||
fd.append("name", name);
|
||||
const { id } = await apiFetch<{ id: string }>("/api/f1/jobs", { method: "POST", body: fd });
|
||||
// 남은 개수가 하나 줄었다
|
||||
refreshMe();
|
||||
router.push(`/poster/${id}`);
|
||||
} catch (e) {
|
||||
setError((e as Error).message);
|
||||
@@ -51,7 +55,9 @@ export default function HomePage() {
|
||||
<button className="btn-cta btn-lg" disabled={!file || busy} onClick={submit}>
|
||||
{busy ? "업로드 중…" : "숏폼 만들기"}
|
||||
</button>
|
||||
<p className="note">공연 상품페이지 주소가 있나요? <Link href="/playreel">상품페이지로 시작하면 캐스팅·일정까지 담깁니다 →</Link></p>
|
||||
{FEATURES.playreelEntry && (
|
||||
<p className="note">공연 상품페이지 주소가 있나요? <Link href="/playreel">상품페이지로 시작하면 캐스팅·일정까지 담깁니다 →</Link></p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user