Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Fixed error page for existing users that are blocked from accessing now

Albert Nimtz5868e2614548
diff --git a/public/pages/Error/AccessDenied.page.tsx b/public/pages/Error/AccessDenied.page.tsx
index 320844942..4c655ab44 100644
--- a/public/pages/Error/AccessDenied.page.tsx
+++ b/public/pages/Error/AccessDenied.page.tsx
@@ -2,7 +2,7 @@ import { Trans } from "@lingui/react/macro"
import React from "react"
import { ErrorPageWrapper } from "./components/ErrorPageWrapper"
-export const AccessDenied = () => {
+const AccessDenied = () => {
return (
<ErrorPageWrapper id="p-access-denied" showHomeLink={true}>
<h1 className="text-display">
@@ -17,3 +17,5 @@ export const AccessDenied = () => {
</ErrorPageWrapper>
)
}
+
+export default AccessDenied
diff --git a/public/ssr.tsx b/public/ssr.tsx
index e64e9e499..f8491a543 100644
--- a/public/ssr.tsx
+++ b/public/ssr.tsx
@@ -47,6 +47,7 @@ const pages: { [key: string]: any } = {
"Error/Error410.page": require(`./pages/Error/Error410.page`),
"Error/Error500.page": require(`./pages/Error/Error500.page`),
"Error/NotInvited.page": require(`./pages/Error/NotInvited.page`),
+ "Error/AccessDenied.page": require(`./pages/Error/AccessDenied.page`),
}
function ssrRender(url: string, args: any) {