Skip to content

Commit

Permalink
refactor: type 정의 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 committed Nov 13, 2023
1 parent a472f0b commit d637897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/context/MarkerContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ type MarkerContextType = {
displayClickedMarker: () => void;
};

type ElementType = 'marker' | 'infoWindow';

const defaultMarkerContext = () => {
throw new Error('MarkerContext가 제공되지 않았습니다.');
};
Expand Down Expand Up @@ -49,8 +51,6 @@ function MarkerProvider({ children }: Props): JSX.Element {
const { routePage } = useNavigator();
const { pathname } = useLocation();

type ElementType = 'marker' | 'infoWindow';

const createElementsColor = (elementType: ElementType = 'marker') => {
let markerType = -1;
let currentTopicId = '-1';
Expand Down

0 comments on commit d637897

Please sign in to comment.