mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-22 08:53:01 +02:00
Roadmap filtering in the model
This commit is contained in:
@@ -167,7 +167,7 @@ export function RoadmapSelector(props: RoadmapSelectorProps) {
|
||||
<SelectRoadmapModal
|
||||
onClose={() => setShowSelectRoadmapModal(false)}
|
||||
teamResourceConfig={teamResources}
|
||||
allRoadmaps={allRoadmaps}
|
||||
allRoadmaps={allRoadmaps.filter(r => r.renderer === 'editor')}
|
||||
teamId={teamId}
|
||||
onRoadmapAdd={(roadmapId) => {
|
||||
addTeamResource(roadmapId).finally(() => {
|
||||
|
@@ -147,6 +147,15 @@ export function SelectRoadmapModal(props: SelectRoadmapModalProps) {
|
||||
})}
|
||||
</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>
|
||||
|
@@ -231,7 +231,7 @@ export function TeamRoadmaps() {
|
||||
<SelectRoadmapModal
|
||||
onClose={() => setIsAddingRoadmap(false)}
|
||||
teamResourceConfig={teamResources}
|
||||
allRoadmaps={filteredAllRoadmaps}
|
||||
allRoadmaps={filteredAllRoadmaps.filter((r) => r.renderer === 'editor')}
|
||||
teamId={teamId}
|
||||
onRoadmapAdd={(roadmapId: string) => {
|
||||
onAdd(roadmapId).finally(() => {
|
||||
|
Reference in New Issue
Block a user