mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-09-16 04:35:33 -04:00
consistent use of arrow functions/default exports
This commit is contained in:
@@ -5,23 +5,23 @@ import selfiePic from "../../public/static/images/me.jpg";
|
||||
|
||||
import styles from "./Name.module.scss";
|
||||
|
||||
export default function Name() {
|
||||
return (
|
||||
<Link href="/">
|
||||
<a className={styles.title}>
|
||||
<span className={styles.selfie}>
|
||||
<Image
|
||||
src={selfiePic}
|
||||
alt="Photo of Jake Jarvis"
|
||||
width={75}
|
||||
height={75}
|
||||
quality={60}
|
||||
layout="intrinsic"
|
||||
priority
|
||||
/>
|
||||
</span>
|
||||
<span className={styles.name}>Jake Jarvis</span>
|
||||
</a>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
const Name = () => (
|
||||
<Link href="/">
|
||||
<a className={styles.title}>
|
||||
<span className={styles.selfie}>
|
||||
<Image
|
||||
src={selfiePic}
|
||||
alt="Photo of Jake Jarvis"
|
||||
width={75}
|
||||
height={75}
|
||||
quality={60}
|
||||
layout="intrinsic"
|
||||
priority
|
||||
/>
|
||||
</span>
|
||||
<span className={styles.name}>Jake Jarvis</span>
|
||||
</a>
|
||||
</Link>
|
||||
);
|
||||
|
||||
export default Name;
|
||||
|
||||
Reference in New Issue
Block a user