added key index to social links + fixed error page function name
continuous-integration/drone/push Build is failing Details

pull/1/head
Guus van Meerveld 9 months ago
parent ca9737ff0d
commit 3dd44872f2

@ -52,8 +52,8 @@ export const Header: Component<{ owner: Owner }> = ({ owner }) => {
<Spacer y={4} /> <Spacer y={4} />
{socials.map((social) => ( {socials.map((social) => (
<Link href={social.link}> <Link href={social.link} key={social.name.toLowerCase()}>
<Tooltip content={social.name}> <Tooltip showArrow content={social.name}>
<Button <Button
className="text-2xl mr-4" className="text-2xl mr-4"
color="primary" color="primary"

@ -5,7 +5,7 @@ import { ErrorPage } from "@typings/errorPage";
import { useEffect } from "react"; import { useEffect } from "react";
const errorPage: ErrorPage = ({ error, reset }) => { const MainErrorPage: ErrorPage = ({ error, reset }) => {
useEffect(() => { useEffect(() => {
console.error(error); console.error(error);
}, [error]); }, [error]);
@ -23,4 +23,4 @@ const errorPage: ErrorPage = ({ error, reset }) => {
); );
}; };
export default errorPage; export default MainErrorPage;

Loading…
Cancel
Save