diff --git a/next.config.js b/next.config.js index f8161e3d..76f6c889 100644 --- a/next.config.js +++ b/next.config.js @@ -7,7 +7,25 @@ const nextConfig = { webpack: config => { config.module.rules.push({ test: /\.svg$/, - use: ['@svgr/webpack'], + use: [ + { + loader: '@svgr/webpack', + options: { + svgoConfig: { + plugins: [ + { + name: 'preset-default', + params: { + overrides: { + removeViewBox: false, + }, + }, + }, + ], + }, + }, + }, + ], }); return config; }, diff --git a/public/icons/heart.svg b/public/icons/heart.svg index 188a9c64..18dd12e7 100644 --- a/public/icons/heart.svg +++ b/public/icons/heart.svg @@ -1,3 +1,3 @@ - - + + diff --git a/src/v1/base/Badge.tsx b/src/v1/base/Badge.tsx index 3330bc4f..0076bbd5 100644 --- a/src/v1/base/Badge.tsx +++ b/src/v1/base/Badge.tsx @@ -82,7 +82,7 @@ const Badge = ({ return (
{children} diff --git a/src/v1/base/LikeButton.tsx b/src/v1/base/LikeButton.tsx index ee71d2cd..9b091d8a 100644 --- a/src/v1/base/LikeButton.tsx +++ b/src/v1/base/LikeButton.tsx @@ -15,13 +15,11 @@ const LikeButton = ({ isLiked, likeCount, onClick }: LikeButtonProps) => { return (