Skip to content

Commit

Permalink
Input Field Issue Resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
promiseonuoha committed Jun 19, 2024
1 parent 6dcaf9d commit 379ba63
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 21 deletions.
Binary file modified .next/cache/webpack/client-development/3.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/index.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/index.pack.gz.old
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/5.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/index.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/index.pack.gz.old
Binary file not shown.
6 changes: 3 additions & 3 deletions .next/server/app-paths-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/forms/page": "app/forms/page.js",
"/page": "app/page.js",
"/favicon.ico/route": "app/favicon.ico/route.js",
"/forms/show/[uuid]/page": "app/forms/show/[uuid]/page.js"
"/forms/page": "app/forms/page.js",
"/forms/show/[uuid]/page": "app/forms/show/[uuid]/page.js",
"/favicon.ico/route": "app/favicon.ico/route.js"
}
2 changes: 1 addition & 1 deletion .next/server/webpack-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ (() => {
/******/ __webpack_require__.h = () => ("faaf26e764a97e1d")
/******/ __webpack_require__.h = () => ("305aca5d28d7002e")
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
Expand Down
88 changes: 88 additions & 0 deletions .next/trace

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions src/app/forms/show/[uuid]/components/show-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,25 +144,25 @@ const ShowForm: React.FC<ShowFormProps> = ({ formUUID }) => {
}, [formUUID]);

// Check if there is a timeout
useEffect((): any => {
if (form?.timeout !== null && parseInt(form?.timeout)) {
setTimeOutModal(true);
}
}, [form]);
// useEffect((): any => {
// if (form?.timeout !== null && parseInt(form?.timeout)) {
// setTimeOutModal(true);
// }
// }, [form]);

// Handle Timeout
useEffect(() => {
if (typeof seconds === "number" && seconds <= 0) {
handleSubmit();
return;
}
if (typeof seconds === "number") {
const intervalId = setInterval(() => {
// setSeconds((prev: number) => prev - 1);
}, 1000);
return () => clearInterval(intervalId);
}
}, [seconds]);
// useEffect(() => {
// if (typeof seconds === "number" && seconds <= 0) {
// handleSubmit();
// return;
// }
// if (typeof seconds === "number") {
// const intervalId = setInterval(() => {
// setSeconds((prev: number) => prev - 1);
// }, 1000);
// return () => clearInterval(intervalId);
// }
// }, [seconds]);

// Function to format time as mm:ss
const formatTime = (s: any) => {
Expand Down

0 comments on commit 379ba63

Please sign in to comment.