Skip to content

Commit

Permalink
Merge pull request #111 from Eagle2gle/dev
Browse files Browse the repository at this point in the history
6차 배포
  • Loading branch information
YuriKwon authored Mar 26, 2023
2 parents 27c48b8 + 68367ae commit 9db0c71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/cahoots/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import HeaderWithBackButton from '@/components/mypage/HeaderWithBackButton';
import PlaceSearchBar from '@/components/PlaceSearchBar';
import { useSuspendedQuery } from '@/hooks/useSuspendedQuery';
import wrapper from '@/store';
import { useTypeSelector } from '@/store';
import { CountriesType } from '@/types/cahoot';
import { Response } from '@/types/response';
// import Map from '@/components/Map';
Expand Down Expand Up @@ -51,6 +52,7 @@ export interface FormDataType {
}

export default function CreateCahoot() {
const token = useTypeSelector((state) => state.user.token);
const router = useRouter();
const selectBoxContainer = useRef<HTMLDivElement>(null);
const [selectedCountry, setSelectedCountry] = useState('국가'); // 휴양지 위치
Expand All @@ -75,6 +77,7 @@ export default function CreateCahoot() {

fetch(`${process.env.NEXT_PUBLIC_HOST}/api/auth/cahoots`, {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
body: formData,
})
.then((response) => response.json())
Expand Down

0 comments on commit 9db0c71

Please sign in to comment.