From f570845fb16490c9987f3c5e3a93d116290dd804 Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Wed, 14 Feb 2024 14:10:13 -0500 Subject: [PATCH] fix: Improved download route, improved constant name --- src/navigation/components/Routes.js | 18 +++++++----------- src/sharedData/sharedDataConstants.js | 4 ++-- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/navigation/components/Routes.js b/src/navigation/components/Routes.js index 478fadb20b..bd0637d573 100644 --- a/src/navigation/components/Routes.js +++ b/src/navigation/components/Routes.js @@ -108,17 +108,13 @@ const paths = [ showBreadcrumbs: true, breadcrumbsLabel: 'group.breadcrumbs_visualization', }), - path( - '/groups/:groupSlug/shared-resource/download/:shareUuid', - SharedResourceDownload, - { - optionalAuth: { - enabled: true, - topMessage: - 'sharedData.shared_resource_download_optional_auth_top_message', - }, - } - ), + path('/groups/:groupSlug/download/:shareUuid', SharedResourceDownload, { + optionalAuth: { + enabled: true, + topMessage: + 'sharedData.shared_resource_download_optional_auth_top_message', + }, + }), path('/landscapes/map', LandscapeMapEmbed, { optionalAuth: { enabled: true, diff --git a/src/sharedData/sharedDataConstants.js b/src/sharedData/sharedDataConstants.js index 3a39682306..832bd4081f 100644 --- a/src/sharedData/sharedDataConstants.js +++ b/src/sharedData/sharedDataConstants.js @@ -17,11 +17,11 @@ export const MAX_DESCRIPTION_CHARACTERS = 200; -export const SHARE_ACCESS_NO = 'NO'; +export const SHARE_ACCESS_NONE = 'NO'; export const SHARE_ACCESS_ALL = 'ALL'; export const SHARE_ACCESS_TARGET_MEMBERS = 'TARGET_MEMBERS'; export const SHARE_ACCESS_TYPES = [ - SHARE_ACCESS_NO, + SHARE_ACCESS_NONE, SHARE_ACCESS_ALL, SHARE_ACCESS_TARGET_MEMBERS, ];