forked from trent_larson/crowd-funder-for-time-pwa
fix: resolve deep link route mismatch for project links
- Fix schema validation mismatch between "project-details" and "project" - Update VALID_DEEP_LINK_ROUTES to include "project" instead of "project-details" - Update deepLinkSchemas to use "project" route name - Update documentation to reflect correct route name - Resolves "Invalid route path: project" errors in deep link handling The deep link timesafari://project/01JWH0YAB3MAGBD751VAJAXQ17 now works correctly and routes to the ProjectViewView component as expected. Fixes: Deep link validation errors for project routes
This commit is contained in:
@@ -30,7 +30,7 @@ import { z } from "zod";
|
||||
// Add a union type of all valid route paths
|
||||
export const VALID_DEEP_LINK_ROUTES = [
|
||||
"user-profile",
|
||||
"project-details",
|
||||
"project",
|
||||
"onboard-meeting-setup",
|
||||
"invite-one-accept",
|
||||
"contact-import",
|
||||
@@ -61,7 +61,7 @@ export const deepLinkSchemas = {
|
||||
"user-profile": z.object({
|
||||
id: z.string(),
|
||||
}),
|
||||
"project-details": z.object({
|
||||
"project": z.object({
|
||||
id: z.string(),
|
||||
}),
|
||||
"onboard-meeting-setup": z.object({
|
||||
|
||||
Reference in New Issue
Block a user