-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: icon 에러 수정 * feat: 제휴가게리스트 API 연결 * feat: 라우터 연결 * fix: img 오류 수정 * feat: 제휴가게 상세 API 연결 * feat: modal api 연결 및 디자인 수정 * style: checkbox 적용
- Loading branch information
1 parent
c79c180
commit 1c61d3d
Showing
24 changed files
with
488 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export type ContractListInfo = { | ||
category: "FOOD" | "CAFE" | "BEAUTY" | "CULTURE" | "ETC" | "NONE"; | ||
storeId: number; | ||
storeName: string; | ||
benefits: Benefit[]; | ||
}; | ||
|
||
type Benefit = { | ||
amount: number; | ||
benfitId: number; | ||
content: string; | ||
type: "FIX" | "RATE" | "MENU"; | ||
}; | ||
|
||
export type ContractInfo = { | ||
benefits: Benefit[]; | ||
category: "FOOD" | "CAFE" | "BEAUTY" | "CULTURE" | "ETC" | "NONE"; | ||
endDate: string; | ||
latitude: number; | ||
longitude: number; | ||
manager: string; | ||
mapUrl: string; | ||
phoneNumber: string; | ||
startDate: string; | ||
storeId: number; | ||
storeName: string; | ||
visitInfo: object; | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ const NameMarker = ({ | |
lat, | ||
lng, | ||
type = "CULTURE", | ||
icon, | ||
title, | ||
markerType, | ||
}: NameMarkerProps) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { axiosInstance } from "@/pages/api/axiosInstance"; | ||
import axios from "axios"; | ||
import { FilterProps } from "./StoreAPI"; | ||
|
||
export const getContractBase = async ({ | ||
isPicked = false, | ||
name = "", | ||
category = "NONE", | ||
pageNumber = 0, | ||
}: FilterProps) => { | ||
try { | ||
const response = await axiosInstance.get( | ||
`/contract?isPicked=${isPicked}&name=${name}&category=${category}&pageSize=40&pageNumber=${pageNumber}` | ||
); | ||
return response.data; | ||
} catch (error) { | ||
if (axios.isAxiosError(error)) { | ||
console.log(error.response?.data); | ||
} | ||
return null; | ||
} | ||
}; | ||
|
||
export const getContractInfo = async (id: number) => { | ||
try { | ||
const response = await axiosInstance.get(`/contract/details/${id}`); | ||
return response.data; | ||
} catch (error) { | ||
if (axios.isAxiosError(error)) { | ||
console.log(error.response?.data); | ||
} | ||
return null; | ||
} | ||
}; |
Oops, something went wrong.