Skip to content

Commit

Permalink
🐞 fix: fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
masoumehmohebbi committed Jun 9, 2024
1 parent 563cee8 commit 17829ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/icons/address-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
function AddressIcon({ width, height }) {
interface AddressIconProps {
width?: number | string;
height?: number | string;
}
const AddressIcon: React.FC<AddressIconProps> = ({ width = 24, height = 24 }) => {
return (
<svg
width={width}
Expand All @@ -22,6 +26,6 @@ function AddressIcon({ width, height }) {
/>
</svg>
);
}
};

export default AddressIcon;
3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: '/next.js14-todo-list-pag-router',
output: 'export',
distDir: 'dist',
reactStrictMode: true,
swcMinify: true,
};
Expand Down

0 comments on commit 17829ef

Please sign in to comment.