mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-25 10:14:20 +02:00
Roadmap filtering in the model
This commit is contained in:
@@ -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(() => {
|
||||||
|
Reference in New Issue
Block a user