mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-31 21:11:44 +02:00
wip
This commit is contained in:
@@ -86,7 +86,7 @@ export function RoadmapListPage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const totalRoadmaps = allRoadmaps.personalRoadmaps.length;
|
const totalRoadmaps = allRoadmaps.personalRoadmaps.length;
|
||||||
const hasCrossedLimit = totalRoadmaps >= 3;
|
const hasCrossedLimit = !isPaidUser && totalRoadmaps >= 3;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
@@ -117,7 +117,7 @@ export function RoadmapListPage() {
|
|||||||
<button
|
<button
|
||||||
className={`relative flex w-full items-center justify-center rounded-md border p-1 px-3 text-sm sm:w-auto`}
|
className={`relative flex w-full items-center justify-center rounded-md border p-1 px-3 text-sm sm:w-auto`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (hasCrossedLimit && !isPaidUser) {
|
if (hasCrossedLimit) {
|
||||||
setShowUpgradeModal(true);
|
setShowUpgradeModal(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -130,7 +130,7 @@ export function RoadmapListPage() {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{hasCrossedLimit && !isPaidUser && (
|
{hasCrossedLimit && (
|
||||||
<div className="mt-4 flex flex-col gap-2 rounded-lg border border-yellow-300 bg-yellow-50 p-2.5 text-yellow-800">
|
<div className="mt-4 flex flex-col gap-2 rounded-lg border border-yellow-300 bg-yellow-50 p-2.5 text-yellow-800">
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
You have reached the limit of 3 roadmaps.{' '}
|
You have reached the limit of 3 roadmaps.{' '}
|
||||||
|
Reference in New Issue
Block a user