11import { Link } from "react-router-dom"
2- import Carousel from "../components/Carousel"
32import { FEATURED_REPO , REPO_DATA_TYPE } from "../utils/types" ;
43import FeaturedData from "../data/featured_data.json" ;
54import RepoData from "../data/repo_data.json" ;
6- import RepoCard from "../components/GithubCard" ;
75import "../styles/components/FeaturedDisplay.css"
86import "../styles/components/Carousel.css" ;
9- import { useEffect , useRef , useState } from "react" ;
107import Slider from "react-slick" ;
8+ import "slick-carousel/slick/slick.css"
9+ import "slick-carousel/slick/slick-theme.css"
1110
1211interface featured_json {
1312 screenshot_img : string ;
@@ -16,8 +15,6 @@ interface featured_json {
1615}
1716
1817const FeaturedSection = ( ) => {
19- let nav2Ref = useRef < Slider > ( null ) ;
20-
2118 const Repos : REPO_DATA_TYPE [ ] = RepoData as REPO_DATA_TYPE [ ] ;
2219
2320 const featuredReposList : featured_json [ ] = FeaturedData as featured_json [ ] ;
@@ -66,11 +63,11 @@ const FeaturedSection = () => {
6663 ) ) }
6764 </ Slider >
6865
69- < Carousel ref = { nav2Ref } >
66+ { /* <Carousel>
7067 {featuredRepos.map((repo, index) => (
7168 <RepoCard repoData={repo.repo} key={index} />
7269 ))}
73- </ Carousel >
70+ </Carousel> */ }
7471 </ section >
7572
7673 )
0 commit comments