Skip to content

Commit 4194e6c

Browse files
committed
fix: Api 타입수정 및 잘못된 import문 수정
1 parent 7f29c53 commit 4194e6c

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

src/app/_types/Api.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
export interface groupPost {
2-
name: string;
3-
description: string;
4-
groupCapacity: number;
5-
beginAt: string;
6-
endAt: string;
1+
export interface groupPost{
2+
address: string;
73
latitude: number;
84
longitude: number;
9-
address: string;
5+
groupCapacity: number;
6+
beginAt: string;
7+
endAt: string;
8+
name?: string; // 선택적으로 변경
9+
description?: string;
1010
}
1111
export interface groupModalApiData {
1212

src/components/ui/Header/DropDown/LogoutButton.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
import {
22
DropdownMenuItem,
33
} from '../../dropdown-menu';
4-
import {
5-
AlertDialog,
6-
AlertDialogAction,
7-
AlertDialogCancel,
8-
AlertDialogContent,
9-
AlertDialogDescription,
10-
AlertDialogFooter,
11-
AlertDialogHeader,
12-
AlertDialogTitle,
13-
AlertDialogTrigger,
14-
} from "@/components/ui/alert-dialog"
4+
155
import { logout } from '../lib/logout';
166

177
export const LogoutButton = () => {

src/lib/getAccessTokenWithRefreshToken.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import { fetchWithAuth } from "@/app/(afterLogin)/_lib/FetchWithAuth";
2+
13
export const getAccessTokenWithRefreshToken = async () => {
2-
const response = await fetch(`${process.env.NEXT_PUBLIC_API_LOCATION}/api/tokens`, {
4+
const response = await fetchWithAuth(`${process.env.NEXT_PUBLIC_API_LOCATION}/api/tokens`, {
35
method: 'POST',
46
headers: {
57
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)