Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

captchas settings to remix

Maksim Mrug9dadd6d20794
diff --git a/app/pages/Captcha/Settings/CaptchaSettings.tsx b/app/pages/Captcha/Settings/CaptchaSettings.tsx
index a8eb3a311..a61488dc0 100644
--- a/app/pages/Captcha/Settings/CaptchaSettings.tsx
+++ b/app/pages/Captcha/Settings/CaptchaSettings.tsx
@@ -134,7 +134,7 @@ const CaptchaSettings = ({
})
}
}
- }, [user, project, isLoading, isSettings, history, showError, projectDeleting, t])
+ }, [user, project, isLoading, isSettings, navigate, showError, projectDeleting, t])
const onSubmit = async (data: IForm) => {
if (!projectSaving) {
diff --git a/app/routes/captchas.settings.$id.tsx b/app/routes/captchas.settings.$id.tsx
new file mode 100644
index 000000000..174bfc99d
--- /dev/null
+++ b/app/routes/captchas.settings.$id.tsx
@@ -0,0 +1,15 @@
+import CaptchaSettings from 'pages/Captcha/Settings'
+import type { V2_MetaFunction } from '@remix-run/node'
+
+export const meta: V2_MetaFunction = () => {
+ return [
+ {
+ title: 'Captcha Settings',
+ description: 'Captcha Settings',
+ },
+ ]
+}
+
+export default function Index() {
+ return <CaptchaSettings />
+}
diff --git a/app/routesPath/index.ts b/app/routesPath/index.ts
index 4fc4305c3..596c89ab9 100644
--- a/app/routesPath/index.ts
+++ b/app/routesPath/index.ts
@@ -13,7 +13,7 @@ const routes = Object.freeze({
new_project: '/projects/new', // add
new_captcha: '/captchas/new', // add
project_settings: '/projects/settings/:id', // add
- captcha_settings: '/captchas/settings/:id',
+ captcha_settings: '/captchas/settings/:id', // add
project: '/projects/:id', // add
captcha: '/captchas/:id',
features: '/features', // add