Skip to content

Commit

Permalink
fix: Api 타입수정 및 잘못된 import문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
phnml1 committed Nov 29, 2024
1 parent 7f29c53 commit 4194e6c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
14 changes: 7 additions & 7 deletions src/app/_types/Api.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export interface groupPost {
name: string;
description: string;
groupCapacity: number;
beginAt: string;
endAt: string;
export interface groupPost{
address: string;
latitude: number;
longitude: number;
address: string;
groupCapacity: number;
beginAt: string;
endAt: string;
name?: string; // 선택적으로 변경
description?: string;
}
export interface groupModalApiData {

Expand Down
12 changes: 1 addition & 11 deletions src/components/ui/Header/DropDown/LogoutButton.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import {
DropdownMenuItem,
} from '../../dropdown-menu';
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogTrigger,
} from "@/components/ui/alert-dialog"

import { logout } from '../lib/logout';

export const LogoutButton = () => {
Expand Down
4 changes: 3 additions & 1 deletion src/lib/getAccessTokenWithRefreshToken.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { fetchWithAuth } from "@/app/(afterLogin)/_lib/FetchWithAuth";

export const getAccessTokenWithRefreshToken = async () => {
const response = await fetch(`${process.env.NEXT_PUBLIC_API_LOCATION}/api/tokens`, {
const response = await fetchWithAuth(`${process.env.NEXT_PUBLIC_API_LOCATION}/api/tokens`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 4194e6c

Please sign in to comment.