Skip to content

Commit

Permalink
Design: 다크 모드 location 아이콘 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
MEGUMMY1 committed Jul 22, 2024
1 parent 9e54f1c commit 2bc81b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion components/ActivityDetails/ActivityDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ import { ShareButton } from '../ ShareButton/ShareButton';
import { ActivityDetailsPageMeta } from '../MetaData/MetaData';
import useDeleteActivity from '@/hooks/myActivity/useDeleteActivity';
import { usePopup } from '@/hooks/usePopup';
import { darkModeState } from '@/states/themeState';

export default function ActivityDetails({ id }: ActivityDetailsProps) {
const router = useRouter();
const [isOpen, setIsOpen] = useState(false);
const isDarkMode = useRecoilValue(darkModeState);
const [currentPage, setCurrentPage] = useState<number>(
router.query.page ? parseInt(router.query.page as string, 10) : 1
);
Expand Down Expand Up @@ -147,7 +149,11 @@ export default function ActivityDetails({ id }: ActivityDetailsProps) {
</div>
<div className="flex gap-1 items-center justify-center m:items-start">
<Image
src="/icon/location.svg"
src={
isDarkMode
? '/icon/location_gray.svg'
: '/icon/location.svg'
}
alt="위치 아이콘"
width={18}
height={18}
Expand Down
2 changes: 1 addition & 1 deletion components/ActivityDetails/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default function Map({ address }: MapProps) {
/>
<div className="flex gap-1 mt-2 items-center">
<Image
src="/icon/location.svg"
src={isDarkMode ? '/icon/location_gray.svg' : '/icon/location.svg'}
alt="위치 아이콘"
width={18}
height={18}
Expand Down
4 changes: 4 additions & 0 deletions public/icon/location_gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2bc81b0

Please sign in to comment.