mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-16 20:25:34 -04:00
consistent use of arrow functions/default exports
This commit is contained in:
@@ -6,7 +6,7 @@ type Props = {
|
||||
title: unknown;
|
||||
};
|
||||
|
||||
export default function PageTitle({ title }: Props) {
|
||||
const PageTitle = ({ title }: Props) => {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
@@ -14,4 +14,6 @@ export default function PageTitle({ title }: Props) {
|
||||
<a href={router.asPath}>{title}</a>
|
||||
</h1>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default PageTitle;
|
||||
|
Reference in New Issue
Block a user