Roadmap filtering in the model

pull/6546/head
Kamran Ahmed 2 months ago
parent 1282b392eb
commit 60e976e3a5
  1. 2
      src/components/CreateTeam/RoadmapSelector.tsx
  2. 9
      src/components/CreateTeam/SelectRoadmapModal.tsx
  3. 2
      src/components/TeamRoadmapsList/TeamRoadmaps.tsx

@ -167,7 +167,7 @@ export function RoadmapSelector(props: RoadmapSelectorProps) {
<SelectRoadmapModal <SelectRoadmapModal
onClose={() => setShowSelectRoadmapModal(false)} onClose={() => setShowSelectRoadmapModal(false)}
teamResourceConfig={teamResources} teamResourceConfig={teamResources}
allRoadmaps={allRoadmaps} allRoadmaps={allRoadmaps.filter(r => r.renderer === 'editor')}
teamId={teamId} teamId={teamId}
onRoadmapAdd={(roadmapId) => { onRoadmapAdd={(roadmapId) => {
addTeamResource(roadmapId).finally(() => { addTeamResource(roadmapId).finally(() => {

@ -147,6 +147,15 @@ export function SelectRoadmapModal(props: SelectRoadmapModalProps) {
})} })}
</div> </div>
</div> </div>
<div className="border-t border-t-yellow-300 text-yellow-900 bg-yellow-100 px-4 py-3 text-sm">
<h2 className='font-medium text-base text-yellow-900 mb-1'>More Official Roadmaps Coming Soon</h2>
<p>
We are currently adding more of our official
roadmaps to this list. If you don't see the roadmap you are
looking for, please check back later.
</p>
</div>
</div> </div>
</div> </div>
</div> </div>

@ -231,7 +231,7 @@ export function TeamRoadmaps() {
<SelectRoadmapModal <SelectRoadmapModal
onClose={() => setIsAddingRoadmap(false)} onClose={() => setIsAddingRoadmap(false)}
teamResourceConfig={teamResources} teamResourceConfig={teamResources}
allRoadmaps={filteredAllRoadmaps} allRoadmaps={filteredAllRoadmaps.filter((r) => r.renderer === 'editor')}
teamId={teamId} teamId={teamId}
onRoadmapAdd={(roadmapId: string) => { onRoadmapAdd={(roadmapId: string) => {
onAdd(roadmapId).finally(() => { onAdd(roadmapId).finally(() => {

Loading…
Cancel
Save