Skip to content

fix: ES Lint Warnings solved like PassRef,etc #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions huntingcoder/pages/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const Blog = (props) => {
>
{blogs.map((blogitem) => {
return <div key={blogitem.slug}>
<Link href={`/blogpost/${blogitem.slug}`}>
<Link passHref href={`/blogpost/${blogitem.slug}`}>
<h3 className={styles.blogItemh3}>{blogitem.title}</h3></Link>
<p className={styles.blogItemp}>{blogitem.metadesc.substr(0, 140)}...</p>
<Link href={`/blogpost/${blogitem.slug}`}><button className={styles.btn}>Read More</button></Link>
<Link passHref href={`/blogpost/${blogitem.slug}`}><button className={styles.btn}>Read More</button></Link>
</div>
})}
</InfiniteScroll>
Expand Down
3 changes: 2 additions & 1 deletion huntingcoder/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Head from 'next/head'
import styles from '../styles/Home.module.css'
import Image from 'next/image'

export default function Home() {
return (
Expand All @@ -14,7 +15,7 @@ export default function Home() {
<main className={styles.main}>
<div className={styles.imagewrap}>
{/* <Image className={styles.myImg} src="/homeimg.jfif" width={237} height={158}/> */}
<img className={styles.myImg} src="/homeimg.jfif" width={237} height={158} alt="hunting coder" />
<Image className={styles.myImg} src="/homeimg.jfif" width={237} height={158} alt="hunting coder" />
</div>
<h1 className={styles.title}>
<span className='dummy'>&lt;HuntingCoder/&gt;</span>
Expand Down