Skip to content

Instantly share code, notes, and snippets.

@ChrisHPZ
Created October 29, 2023 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisHPZ/1d2fbaa620ca094a5d0362949c88cbc6 to your computer and use it in GitHub Desktop.
Save ChrisHPZ/1d2fbaa620ca094a5d0362949c88cbc6 to your computer and use it in GitHub Desktop.
Component where returned prop fails
import { getContactInfo } from "../lib/posts";
import footerContactStyles from "../styles/footerContactRow.module.css";
export async function getStaticProps() {
const contactInfo = await getContactInfo();
return {
props: {
contactInfo: contactInfo
}
}
}
export default function FooterContactRow({contactInfo}) {
{/* contactInfo comes back as undefined */}
console.log(contactInfo)
return(
<div className={footerContactStyles.flexThreeRow}>
more contact stuff goes here
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment