Skip to content

Commit

Permalink
feat : geolocation 기본값을 null로 변경 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyeol3 committed Feb 16, 2021
1 parent f167e62 commit 0da61ac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/atoms/geolocation.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { atom } from 'recoil';

export const GeolocationAtom = atom({
interface IGeolocationAtom {
latitude: number | null;
longitude: number | null;
}

export const GeolocationAtom = atom<IGeolocationAtom>({
key: 'geolocation',
default: {
latitude: 37.555,
longitude: 126.91,
latitude: null,
longitude: null,
},
});

0 comments on commit 0da61ac

Please sign in to comment.