Skip to content

Commit 00c6a79

Browse files
changes suggested by @drosetti
1 parent 8628345 commit 00c6a79

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

components/Slider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function Slider(props: sliderProps) {
3838
});
3939
};
4040

41-
initializeSwiper(); // Initialize swiper
41+
initializeSwiper();
4242

4343
return () => {
4444
if (swiper && typeof swiper.destroy === "function") {

components/sections/HeroSection.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
/* eslint-disable @next/next/no-img-element */
44
import Link from "next/link";
5-
import Image from "next/image";
65
import { motion } from "framer-motion";
76
import { useState, useEffect } from "react";
87

@@ -13,7 +12,7 @@ interface HeroSectionProps {
1312

1413
export default function HeroSection(props: HeroSectionProps) {
1514
const { isMobile } = props;
16-
const [words, setWords] = useState(["hash.", "ip.", "malware.", "domain."]);
15+
const [words] = useState(["hash.", "ip.", "malware.", "domain."]);
1716
const [currentWordIndex, setCurrentWordIndex] = useState(0);
1817

1918
useEffect(() => {

src/app/blogs/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Header } from "../../../components/Header";
22
import Footer from "../../../components/Footer";
33
import Link from "next/link";
4-
import { compareDesc, format, parseISO } from "date-fns";
5-
import { allPosts, Post } from "../../../.contentlayer/generated";
4+
import { compareDesc} from "date-fns";
5+
import { allPosts } from "../../../.contentlayer/generated";
66

77

88
export default function BlogsPage() {
9-
const posts = allPosts.sort((a, b) =>
10-
compareDesc(new Date(a.date), new Date(b.date))
9+
const posts = allPosts.sort((firstPost, secondPost) =>
10+
compareDesc(new Date(firstPost.date), new Date(secondPost.date))
1111
);
1212
return (
1313
<>

0 commit comments

Comments
 (0)