Fix missing relay provider employee page
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -28,6 +28,7 @@ import { continualImprovementRoutes } from "./routes/continualImprovementRoutes.
|
||||
import { rightsRequestRoutes } from "./routes/rightsRequestRoutes.ts";
|
||||
import { processingActivityRoutes } from "./routes/processingActivityRoutes.ts";
|
||||
import { statesOfApplicabilityRoutes } from "./routes/statesOfApplicabilityRoutes.ts";
|
||||
import { CoreRelayProvider } from "./providers/CoreRelayProvider.tsx";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import {
|
||||
loaderFromQueryLoader,
|
||||
@@ -108,13 +109,13 @@ const routes = [
|
||||
{
|
||||
index: true,
|
||||
Component: lazy(
|
||||
() => import("./pages/iam/memberships/MembershipsPageLoader"),
|
||||
() => import("./pages/iam/memberships/MembershipsPageLoader")
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "organizations/new",
|
||||
Component: lazy(
|
||||
() => import("./pages/iam/organizations/NewOrganizationPage"),
|
||||
() => import("./pages/iam/organizations/NewOrganizationPage")
|
||||
),
|
||||
},
|
||||
{
|
||||
@@ -129,7 +130,11 @@ const routes = [
|
||||
},
|
||||
{
|
||||
path: "/organizations/:organizationId/employee",
|
||||
Component: EmployeeLayout,
|
||||
Component: () => (
|
||||
<CoreRelayProvider>
|
||||
<EmployeeLayout />
|
||||
</CoreRelayProvider>
|
||||
),
|
||||
ErrorBoundary: ErrorBoundary,
|
||||
children: [
|
||||
{
|
||||
@@ -138,13 +143,12 @@ const routes = [
|
||||
loader: loaderFromQueryLoader(({ organizationId }) =>
|
||||
loadQuery(coreEnvironment, employeeDocumentsQuery, {
|
||||
organizationId: organizationId!,
|
||||
}),
|
||||
})
|
||||
),
|
||||
Component: withQueryRef(
|
||||
lazy(
|
||||
() =>
|
||||
import("./pages/organizations/employee/EmployeeDocumentsPage"),
|
||||
),
|
||||
() => import("./pages/organizations/employee/EmployeeDocumentsPage")
|
||||
)
|
||||
),
|
||||
},
|
||||
{
|
||||
@@ -154,13 +158,13 @@ const routes = [
|
||||
loader: loaderFromQueryLoader(({ documentId }) =>
|
||||
loadQuery(coreEnvironment, employeeDocumentSignatureQuery, {
|
||||
documentId: documentId!,
|
||||
}),
|
||||
})
|
||||
),
|
||||
Component: withQueryRef(
|
||||
lazy(
|
||||
() =>
|
||||
import("./pages/organizations/employee/EmployeeDocumentSignaturePage"),
|
||||
),
|
||||
import("./pages/organizations/employee/EmployeeDocumentSignaturePage")
|
||||
)
|
||||
),
|
||||
},
|
||||
],
|
||||
@@ -168,7 +172,7 @@ const routes = [
|
||||
{
|
||||
path: "/organizations/:organizationId",
|
||||
Component: lazy(
|
||||
() => import("./pages/iam/memberships/MembershipLayoutLoader"),
|
||||
() => import("./pages/iam/memberships/MembershipLayoutLoader")
|
||||
),
|
||||
ErrorBoundary: ErrorBoundary,
|
||||
children: [
|
||||
@@ -190,7 +194,7 @@ const routes = [
|
||||
path: "settings",
|
||||
Fallback: PageSkeleton,
|
||||
Component: lazy(
|
||||
() => import("./pages/iam/organizations/settings/SettingsLayout"),
|
||||
() => import("./pages/iam/organizations/settings/SettingsLayout")
|
||||
),
|
||||
children: [
|
||||
{
|
||||
@@ -203,28 +207,28 @@ const routes = [
|
||||
path: "general",
|
||||
Component: lazy(
|
||||
() =>
|
||||
import("./pages/iam/organizations/settings/GeneralSettingsPageLoader"),
|
||||
import("./pages/iam/organizations/settings/GeneralSettingsPageLoader")
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "members",
|
||||
Component: lazy(
|
||||
() =>
|
||||
import("./pages/iam/organizations/settings/MembersPageLoader"),
|
||||
import("./pages/iam/organizations/settings/MembersPageLoader")
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "domain",
|
||||
Component: lazy(
|
||||
() =>
|
||||
import("./pages/organizations/settings/DomainSettingsPageLoader"),
|
||||
import("./pages/organizations/settings/DomainSettingsPageLoader")
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "saml-sso",
|
||||
Component: lazy(
|
||||
() =>
|
||||
import("./pages/iam/organizations/settings/SAMLSettingsPageLoader"),
|
||||
import("./pages/iam/organizations/settings/SAMLSettingsPageLoader")
|
||||
),
|
||||
},
|
||||
],
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
export { objectKeys, objectEntries, cleanFormData } from "./object";
|
||||
export { sprintf, faviconUrl, slugify, domain } from "./string";
|
||||
export {
|
||||
getCustomDomainStatusBadgeLabel,
|
||||
getCustomDomainStatusBadgeVariant,
|
||||
} from "./customDomain";
|
||||
export {
|
||||
getTreatment,
|
||||
getRiskImpacts,
|
||||
|
||||
Reference in New Issue
Block a user