staticwebdev / nextjs-starter

A Next.js starter application for deploying to Azure Static Web Apps
https://docs.microsoft.com/azure/static-web-apps/deploy-nextjs
31 stars 27 forks source link

fix: add GithubIcon 'w' and 'h' props #46

Open jt-ziolo opened 1 year ago

jt-ziolo commented 1 year ago

On line 68 of [path].js:

<GithubIcon w={24} h={24} />

the props w and h are excluded from the definition of GithubIcon (lines 229 - 244 of Icons.js):

export function GithubIcon() { // should be GithubIcon({ w, h })
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width="24" // should be {w}
      height="24" // should be {h}
      fill="none"
      viewBox="0 0 24 24"
    >
      <path
    // ...
    ></path>
    </svg>
  );
}