diff --git a/src/components/CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx b/src/components/CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx index 0fe09f324..7fc6de07c 100644 --- a/src/components/CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx +++ b/src/components/CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx @@ -29,6 +29,7 @@ export interface RoadmapDocument { description?: string; creatorId: string; teamId?: string; + isDiscoverable: boolean; type: AllowedCustomRoadmapType; visibility: AllowedRoadmapVisibility; sharedFriendIds?: string[]; diff --git a/src/components/CustomRoadmap/PersonalRoadmapList.tsx b/src/components/CustomRoadmap/PersonalRoadmapList.tsx index 7ac2e978a..5aa918b99 100644 --- a/src/components/CustomRoadmap/PersonalRoadmapList.tsx +++ b/src/components/CustomRoadmap/PersonalRoadmapList.tsx @@ -60,6 +60,7 @@ export function PersonalRoadmapList(props: PersonalRoadmapListType) { const shareSettingsModal = selectedRoadmap && ( {isSharing && $canManageCurrentRoadmap && $currentRoadmap && ( {isSharing && $currentRoadmap && ( void; visibility: AllowedRoadmapVisibility; + isDiscoverable?: boolean; sharedFriendIds?: string[]; sharedTeamMemberIds?: string[]; teamId?: string; @@ -37,6 +38,7 @@ export function ShareOptionsModal(props: ShareOptionsModalProps) { const { roadmapId, onClose, + isDiscoverable: defaultIsDiscoverable = false, visibility: defaultVisibility, sharedTeamMemberIds: defaultSharedMemberIds = [], sharedFriendIds: defaultSharedFriendIds = [], @@ -57,7 +59,7 @@ export function ShareOptionsModal(props: ShareOptionsModalProps) { const membersCache = useMemo(() => new Map(), []); const [visibility, setVisibility] = useState(defaultVisibility); - const [isDiscoverable, setIsDiscoverable] = useState(false); + const [isDiscoverable, setIsDiscoverable] = useState(defaultIsDiscoverable); const [sharedTeamMemberIds, setSharedTeamMemberIds] = useState( defaultSharedMemberIds );