Skip to content

Commit f66490d

Browse files
authored
Merge branch 'develop' into feat/#44
2 parents 3fa0031 + 8749ad1 commit f66490d

21 files changed

+1159
-688
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ yarn-error.log*
3434
# typescript
3535
*.tsbuildinfo
3636
next-env.d.ts
37+
.env

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@
1313
"dependencies": {
1414
"@amcharts/amcharts4": "^4.10.38",
1515
"@next/font": "^14.1.0",
16+
"@types/qs": "^6.9.12",
1617
"@types/styled-components": "^5.1.34",
1718
"@typescript-eslint/eslint-plugin": "^7.1.0",
1819
"@typescript-eslint/parser": "^7.1.0",
1920
"apexcharts": "^3.46.0",
21+
"axios": "^1.6.7",
2022
"chart.js": "^4.4.2",
2123
"eslint-config-airbnb": "^19.0.4",
2224
"eslint-config-airbnb-typescript": "^18.0.0",
2325
"eslint-config-prettier": "^9.1.0",
2426
"framer-motion": "^11.0.8",
2527
"next": "14.1.0",
28+
"qs": "^6.12.0",
2629
"react": "^18",
2730
"react-apexcharts": "^1.4.1",
2831
"react-chartjs-2": "^5.2.0",

src/apis/adCopy.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { NextApiRequest, NextApiResponse } from "next";
2+
3+
export default async function handler(
4+
req: NextApiRequest,
5+
res: NextApiResponse
6+
) {
7+
if (req.method === "POST") {
8+
res.status(200).json({ message: "Copy created successfully" });
9+
} else {
10+
res.status(405).json({ message: "Method Not Allowed" });
11+
}
12+
}

src/apis/axios.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import axios from "axios";
2+
import { parse, stringify } from "qs";
3+
4+
export const kobacoAxios = axios.create({
5+
baseURL: process.env.NEXT_PUBLIC_API_URL,
6+
paramsSerializer: (params) => {
7+
return stringify(params, { arrayFormat: "brackets" });
8+
},
9+
});

src/components/adCopy/AdCopySearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const AdCopySearch = (props: AdCopySearchProps) => {
1616
const { setSearchName } = props;
1717

1818
const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
19-
if (event.key === "Enter") {
19+
if (event.key === "Enter" && event.nativeEvent.isComposing === false) {
2020
setSearchName(name);
2121
setName("");
2222
}

0 commit comments

Comments
 (0)