diff --git a/src/Components/Map/hooks/usePermissions.tsx b/src/Components/Map/hooks/usePermissions.tsx index bee6cdee..a199c143 100644 --- a/src/Components/Map/hooks/usePermissions.tsx +++ b/src/Components/Map/hooks/usePermissions.tsx @@ -80,6 +80,7 @@ function usePermissionsManager(initialPermissions: Permission[]): { item.user_created?.id === user?.id ) ) + // || ( !user && p.role == null ) ); } }, diff --git a/src/Components/Profile/ActionsButton.tsx b/src/Components/Profile/ActionsButton.tsx index ba916eb2..af7f46c4 100644 --- a/src/Components/Profile/ActionsButton.tsx +++ b/src/Components/Profile/ActionsButton.tsx @@ -40,7 +40,7 @@ export function ActionButton({ item, triggerAddButton, triggerItemSelected, exis } - (setModalOpen(false))} className="!tw-w-xl !sm:tw-w-2xl tw-min-h-80 tw-bg-base-200"> + (setModalOpen(false))} className="tw-w-xl sm:tw-w-2xl tw-min-h-80 tw-bg-base-200"> { setSearch(val) }}>
{filterdItems.filter(item => { diff --git a/src/Components/Profile/OverlayItemProfile.tsx b/src/Components/Profile/OverlayItemProfile.tsx index 7efaed22..b1b76e88 100644 --- a/src/Components/Profile/OverlayItemProfile.tsx +++ b/src/Components/Profile/OverlayItemProfile.tsx @@ -6,7 +6,7 @@ import { Item, Tag } from '../../types'; import { useMap } from 'react-leaflet'; import { LatLng } from 'leaflet'; import { PopupStartEndInput, StartEndView, TextView } from '../Map'; -import { useAddTag, useTags } from '../Map/hooks/useTags'; +import { useAddTag, useGetItemTags, useTags } from '../Map/hooks/useTags'; import { useAddFilterTag, useFilterTags, useResetFilterTags } from '../Map/hooks/useFilter'; import { useHasUserPermission } from '../Map/hooks/usePermissions'; import { TextAreaInput, TextInput } from '../Input'; @@ -54,6 +54,8 @@ export function OverlayItemProfile() { const clusterRef = useClusterRef(); const leafletRefs = useLeafletRefs(); const addFilterTag = useAddFilterTag(); + const getItemTags = useGetItemTags(); + const tabRef = useRef(null); @@ -344,7 +346,7 @@ export function OverlayItemProfile() { )} - {updatePermission && } + {updatePermission && }