diff --git a/app/.eslintrc.json b/app/.eslintrc.json
new file mode 100644
index 00000000..ae60f25f
--- /dev/null
+++ b/app/.eslintrc.json
@@ -0,0 +1,13 @@
+{
+ "extends": ["next/core-web-vitals"],
+ "overrides": [
+ {
+ "files": ["**/*.ts", "**/*.tsx"],
+ "extends": ["next/core-web-vitals"],
+ "rules": {
+ "@typescript-eslint/no-unused-vars": "off",
+ "@typescript-eslint/no-explicit-any": "off"
+ }
+ }
+ ]
+}
diff --git a/app/.nvmrc b/app/.nvmrc
index 142d3b2b..4c8f24d7 100644
--- a/app/.nvmrc
+++ b/app/.nvmrc
@@ -1 +1 @@
-v16.4.0
+v24.7.0
diff --git a/app/apollo-client.js b/app/apollo-client.ts
similarity index 100%
rename from app/apollo-client.js
rename to app/apollo-client.ts
diff --git a/app/components/SvgIcons/Arrow.js b/app/components/SvgIcons/Arrow.tsx
similarity index 100%
rename from app/components/SvgIcons/Arrow.js
rename to app/components/SvgIcons/Arrow.tsx
diff --git a/app/components/SvgIcons/Circles.js b/app/components/SvgIcons/Circles.tsx
similarity index 100%
rename from app/components/SvgIcons/Circles.js
rename to app/components/SvgIcons/Circles.tsx
diff --git a/app/components/SvgIcons/Comment.js b/app/components/SvgIcons/Comment.tsx
similarity index 100%
rename from app/components/SvgIcons/Comment.js
rename to app/components/SvgIcons/Comment.tsx
diff --git a/app/components/SvgIcons/Eye.js b/app/components/SvgIcons/Eye.tsx
similarity index 100%
rename from app/components/SvgIcons/Eye.js
rename to app/components/SvgIcons/Eye.tsx
diff --git a/app/components/SvgIcons/Forks.js b/app/components/SvgIcons/Forks.js
deleted file mode 100644
index 223eab47..00000000
--- a/app/components/SvgIcons/Forks.js
+++ /dev/null
@@ -1,35 +0,0 @@
-export default function forks() {
- return (
-
- );
-}
diff --git a/app/public/svg/issue.js b/app/components/SvgIcons/Issue.tsx
similarity index 78%
rename from app/public/svg/issue.js
rename to app/components/SvgIcons/Issue.tsx
index dc4fd831..213256bb 100644
--- a/app/public/svg/issue.js
+++ b/app/components/SvgIcons/Issue.tsx
@@ -10,12 +10,12 @@ export default function issue() {
- {Array.apply(null, { length: 4 }).map(() => (
+ {Array.apply(null, { length: 4 }).map((_, index) => (
{
❤
))}
- {Array.apply(null, { length: 4 }).map(() => (
+ {Array.apply(null, { length: 4 }).map((_, index) => (
{
);
});
+Animation.displayName = 'Animation';
+
export default Animation;
diff --git a/app/components/brandlogo.js b/app/components/brandlogo.tsx
similarity index 100%
rename from app/components/brandlogo.js
rename to app/components/brandlogo.tsx
diff --git a/app/components/clientForms/show.js b/app/components/clientForms/show.tsx
similarity index 86%
rename from app/components/clientForms/show.js
rename to app/components/clientForms/show.tsx
index d88f895f..27e87045 100644
--- a/app/components/clientForms/show.js
+++ b/app/components/clientForms/show.tsx
@@ -1,17 +1,17 @@
import Error from 'next/error';
import { Button, Card, Form, Spinner } from 'react-bootstrap';
-import { getFormData } from '../../lib/formAPI';
+import { useFormData } from '../../lib/formAPI';
import styles from '../../styles/form.module.css';
function RCform({ formId, fw }) {
- const { form, isLoading, isError } = getFormData(formId);
+ const { form, isLoading, isError } = useFormData(formId);
if (isLoading) return ;
- if (isError) return ;
+ if (isError) return ;
const handleSubmit = (e) => {
e.preventDefault();
- console.log('form submitted', e);
+ // TODO: Implement form submission logic
};
return (
@@ -48,7 +48,7 @@ function RCform({ formId, fw }) {
{ele.type == 'number'}
))}
-