Skip to content

Commit 96ae51c

Browse files
fix: finally fixed the 500mile email bug and removed the repos
1 parent 616ab93 commit 96ae51c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/components/Carousel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "slick-carousel/slick/slick.css"
44
import "slick-carousel/slick/slick-theme.css"
55
import "../styles/components/Carousel.css"
66

7-
const Carousel = (props: { children: React.ReactNode[], ref: any, asNavFor?: any }) => {
7+
const Carousel = (props: { children: React.ReactNode[], asNavFor?: any }) => {
88
var settings = {
99
dots: true,
1010
infinite: true,

src/sections/FeaturedDisplay.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { Link } from "react-router-dom"
2-
import Carousel from "../components/Carousel"
32
import { FEATURED_REPO, REPO_DATA_TYPE } from "../utils/types";
43
import FeaturedData from "../data/featured_data.json";
54
import RepoData from "../data/repo_data.json";
6-
import RepoCard from "../components/GithubCard";
75
import "../styles/components/FeaturedDisplay.css"
86
import "../styles/components/Carousel.css";
9-
import { useEffect, useRef, useState } from "react";
107
import Slider from "react-slick";
8+
import "slick-carousel/slick/slick.css"
9+
import "slick-carousel/slick/slick-theme.css"
1110

1211
interface featured_json {
1312
screenshot_img: string;
@@ -16,8 +15,6 @@ interface featured_json {
1615
}
1716

1817
const 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

Comments
 (0)