Skip to content

Commit

Permalink
fix: Improved download route, improved constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Feb 14, 2024
1 parent 209c316 commit f570845
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
18 changes: 7 additions & 11 deletions src/navigation/components/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/sharedData/sharedDataConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];

0 comments on commit f570845

Please sign in to comment.