From 99a3e483708f6b5745582d5dbefc8566e77e2daa Mon Sep 17 00:00:00 2001 From: dmgnr Date: Sun, 13 Sep 2026 18:16:28 +0700 Subject: [PATCH] fix(art): action button is outside context --- app/(ui)/artifact/page.tsx | 115 +++++++++++++------------- components/action-submit-provider.tsx | 1 + 2 files changed, 59 insertions(+), 57 deletions(-) diff --git a/app/(ui)/artifact/page.tsx b/app/(ui)/artifact/page.tsx index 644c65d..d3870bd 100755 --- a/app/(ui)/artifact/page.tsx +++ b/app/(ui)/artifact/page.tsx @@ -153,12 +153,13 @@ export default async function ArtifactFormPage({ - - + +
@@ -222,58 +223,58 @@ export default async function ArtifactFormPage({ />
-
-
- -
- - - - - - - - - - - - อ่านกฏการลงคิว - - {editing ? ( - - ) : ( - - - - )} -
-
- - {count} / {config.limit < 0 ? "∞" : config.limit} คิว - - - = 0 && count >= config.limit)) && - !editing - } - > - {editing ? : } - - -
-
+ + + + + + + + + อ่านกฏการลงคิว + + {editing ? ( + + ) : ( + + + + )} + +
+ + {count} / {config.limit < 0 ? "∞" : config.limit} คิว + + + = 0 && count >= config.limit)) && + !editing + } + > + {editing ? : } + + +
+ + {sid && !q && } diff --git a/components/action-submit-provider.tsx b/components/action-submit-provider.tsx index d19dcbe..2d2e3a7 100644 --- a/components/action-submit-provider.tsx +++ b/components/action-submit-provider.tsx @@ -8,6 +8,7 @@ export type ActionSubmitContextData = { export const ActionSubmitContext = createContext({ listenForComplete: (r) => { + console.warn("submit context not caught"); r(); }, });