From c5fdc9133823de564c7253c41fdbca6bfb1193d7 Mon Sep 17 00:00:00 2001 From: keemsebeen Date: Sat, 26 Oct 2024 03:34:55 +0900 Subject: [PATCH 1/4] fix : update marker SVG to accommodate size changes --- src/assets/icons/marker.svg | 8 ++++---- src/components/common/Marker/index.tsx | 20 +++++--------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/src/assets/icons/marker.svg b/src/assets/icons/marker.svg index 74fd33f..0fbf7c9 100644 --- a/src/assets/icons/marker.svg +++ b/src/assets/icons/marker.svg @@ -1,10 +1,10 @@ - + - - + + - + diff --git a/src/components/common/Marker/index.tsx b/src/components/common/Marker/index.tsx index 5d7036a..bf80692 100644 --- a/src/components/common/Marker/index.tsx +++ b/src/components/common/Marker/index.tsx @@ -4,26 +4,16 @@ import { Props } from './Marker.types'; import { Icon } from '../Icon'; -export const Marker = ({ categoryName, ...props }: Props) => { - const ICON_SIZE = 35; - const ICON_POSITIONS = { - default: { left: '51%', top: '1/2' }, - restaurant: { left: '51%', top: '[55%]' }, - }; +const ICON_SIZE = 30; - const position = - categoryName === 'restaurant' ? ICON_POSITIONS.restaurant : ICON_POSITIONS.default; +export const Marker = ({ categoryName, ...props }: Props) => { return ( -