mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 12:10:22 +02:00
fix: broken type on hero
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { EmptyProgress } from './EmptyProgress';
|
import { EmptyProgress } from './EmptyProgress';
|
||||||
import { httpGet } from '../../lib/http';
|
import { httpGet } from '../../lib/http';
|
||||||
import { HeroRoadmaps } from './HeroRoadmaps.tsx';
|
import { HeroRoadmaps } from './HeroRoadmaps';
|
||||||
import {isLoggedIn} from "../../lib/jwt";
|
import {isLoggedIn} from "../../lib/jwt";
|
||||||
|
|
||||||
export type UserProgressResponse = {
|
export type UserProgressResponse = {
|
||||||
@@ -122,7 +122,7 @@ export function FavoriteRoadmaps() {
|
|||||||
<div className="container min-h-full">
|
<div className="container min-h-full">
|
||||||
{!isLoading && progress.length == 0 && <EmptyProgress />}
|
{!isLoading && progress.length == 0 && <EmptyProgress />}
|
||||||
{progress.length > 0 && (
|
{progress.length > 0 && (
|
||||||
<HeroRoadmaps progress={progress} isLoading={isLoading} />
|
<HeroRoadmaps customRoadmaps={[]} progress={progress} isLoading={isLoading} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user