Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

한지우 10주차 과제 제출 #76

Open
wants to merge 152 commits into
base: jiwoo
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
ad18065
feat: readme.md
jihyune Jan 26, 2023
a5f42e2
Create PULL_REQUEST_TEMPLATE.md
jihyune Jan 26, 2023
21e9a42
fix: title
jihyune Jan 26, 2023
d99088d
chore: typo
jihyune Feb 10, 2023
8c81180
[feat] created week8 cra
Feb 10, 2023
ab121cf
Merge pull request #1 from snulion11th-preSeminar/sw/week8
PangyoMarriedCouple Feb 10, 2023
7e1657b
[feat] created footer and few css works
jiinmozzi Feb 14, 2023
fa4eb77
Merge pull request #2 from snulion11th-preSeminar/main
jiinmozzi Feb 14, 2023
bd1fc18
[feat] Route Setting / react-router-dom
styu12 Feb 15, 2023
96aefb8
[feat] Add routes folder - 4 pages
styu12 Feb 15, 2023
8d74248
[fix] total 6 pages
styu12 Feb 15, 2023
a62676b
[feat] tailwind setting
styu12 Feb 15, 2023
e6291c9
[feat] Home page + Post components
styu12 Feb 15, 2023
f5f1954
feat: signup form
jihyune Feb 15, 2023
1553d13
fix: signup.jsx
jihyune Feb 15, 2023
3233d32
feat: login form
jihyune Feb 15, 2023
3f752b7
chore: rename signUp
jihyune Feb 15, 2023
4aa6507
[feat] form.js component & Signup Signin Page
styu12 Feb 15, 2023
185018f
chore: import signin form
jihyune Feb 15, 2023
5b40d6c
solve conflicts
styu12 Feb 15, 2023
7786e02
Merge branch 'week9/solution' of github.com:snulion11th-preSeminar/re…
styu12 Feb 15, 2023
ebf08ec
feat: comment skel in post detail page
syrius527 Feb 15, 2023
b699888
fix: resolve conflict
syrius527 Feb 15, 2023
f006805
[feat] Tailwind custom class - button example
styu12 Feb 16, 2023
3cd4862
[fix] Home.jsx Layout & Custom CSS Class(button/tag)
styu12 Feb 19, 2023
89c00cb
feat: postForm
jihyune Feb 20, 2023
8996d67
feat: post detail
jihyune Feb 20, 2023
b828b25
[feat] dummy data(posts.js) & PostDetail Page & CreatePost with form …
styu12 Feb 20, 2023
a66cfab
[FIX] update header - comment out PROFILE link
styu12 Feb 21, 2023
a7d8b8b
[FIX] Update CSS - form related css classes
styu12 Feb 21, 2023
ddb5cdd
[FIX] insert form component to CreatePost/SignIn/SignUp
styu12 Feb 21, 2023
b8d63ab
[FEAT] Style comments - PostDetail Page
styu12 Feb 22, 2023
2f235bf
[FEAT] create post with user input
styu12 Feb 22, 2023
4f5b51f
[FEAT] tag dynamic search bar & tag filtering
styu12 Feb 22, 2023
0afb60e
[FIX] tag filtering -> toggle
styu12 Feb 22, 2023
1688f4d
[FIX] remove keydown event & use form onSubmit event
styu12 Feb 22, 2023
f086023
[feat] 개시글 리스팅 구현
jiinmozzi Feb 26, 2023
fee43dd
[feat] resolved conflicts
jiinmozzi Feb 26, 2023
8d8f11c
[refactor] refactor
jiinmozzi Feb 28, 2023
c3a30d1
Merge pull request #5 from snulion11th-preSeminar/jh/week8
jiinmozzi Feb 28, 2023
feaecbe
fix: remove parameter index in mapping post
jihyune Feb 28, 2023
4f25af7
add: .gitignore
jihyune Feb 28, 2023
6fc9974
Merge branch 'week8/solution'
jihyune Feb 28, 2023
f4cf86d
[feat] Route Setting / react-router-dom
styu12 Feb 15, 2023
3625b69
[feat] Add routes folder - 4 pages
styu12 Feb 15, 2023
6c74a5b
[fix] total 6 pages
styu12 Feb 15, 2023
2f525b7
[feat] tailwind setting
styu12 Feb 15, 2023
69a475a
[feat] Home page + Post components
styu12 Feb 15, 2023
7a0a1c1
feat: signup form
jihyune Feb 15, 2023
8a30ef7
fix: signup.jsx
jihyune Feb 15, 2023
ce05f69
feat: login form
jihyune Feb 15, 2023
88f0ef6
chore: rename signUp
jihyune Feb 15, 2023
4db1319
feat: comment skel in post detail page
syrius527 Feb 15, 2023
219851d
[feat] form.js component & Signup Signin Page
styu12 Feb 15, 2023
7c3f9b8
chore: import signin form
jihyune Feb 15, 2023
e60d1c5
[feat] Tailwind custom class - button example
styu12 Feb 16, 2023
5ce505e
[fix] Home.jsx Layout & Custom CSS Class(button/tag)
styu12 Feb 19, 2023
1ca4020
feat: postForm
jihyune Feb 20, 2023
89b55eb
feat: post detail
jihyune Feb 20, 2023
5a1faaa
[feat] dummy data(posts.js) & PostDetail Page & CreatePost with form …
styu12 Feb 20, 2023
691dee9
[FIX] update header - comment out PROFILE link
styu12 Feb 21, 2023
78f8ebc
[FIX] Update CSS - form related css classes
styu12 Feb 21, 2023
a0b0e81
[FIX] insert form component to CreatePost/SignIn/SignUp
styu12 Feb 21, 2023
8d3ef52
[FEAT] Style comments - PostDetail Page
styu12 Feb 22, 2023
da3e5cb
[FEAT] create post with user input
styu12 Feb 22, 2023
9fa97b2
[FEAT] tag dynamic search bar & tag filtering
styu12 Feb 22, 2023
68dd34e
[FIX] tag filtering -> toggle
styu12 Feb 22, 2023
dd0484f
[FIX] remove keydown event & use form onSubmit event
styu12 Feb 22, 2023
2bc649d
fix: css
jihyune Mar 4, 2023
75b2e87
Merge pull request #8 from snulion11th-preSeminar/week9/css
styu12 Mar 5, 2023
85cd549
merge PR
styu12 Mar 5, 2023
13e7037
fix: delete unusable files
jihyune Mar 22, 2023
6cdd6d3
fix: comment submit button css
jihyune Mar 22, 2023
bb8bcca
feat: edit
jihyune Mar 24, 2023
d00d994
feat: add back button
jihyune Mar 26, 2023
92fe89c
feat: add signup, signin page submit button
jihyune Mar 26, 2023
0e2bf02
fix: button margin
jihyune Mar 26, 2023
3325be6
Merge pull request #9 from snulion11th-preSeminar/week9/edit
jihyune Mar 29, 2023
4b104fe
Merge pull request #7 from snulion11th-preSeminar/week9/solution
jihyune Mar 29, 2023
d3108c9
chore: rename directory name
jihyune Mar 29, 2023
8b9687f
solve conflict
styu12 Apr 16, 2023
2aa4b15
fix: post, tag data for api resoponse
jihyune Apr 27, 2023
994c42b
Fix Comment component into CommentElement component, add data/comment…
syrius527 Apr 29, 2023
d9bf6a5
Merge pull request #10 from snulion11th-preSeminar/jihyun/home-api
syrius527 Apr 29, 2023
2424e02
Merge branch 'week9/solution' of github.com:snulion11th-preSeminar/re…
styu12 Apr 30, 2023
fa38689
feat: edit page
jihyune May 1, 2023
f4cdefd
fix: handle error
jihyune May 1, 2023
3d2e17e
chore: new comment id to be dynamically changed
syrius527 May 1, 2023
f61ffaf
feat: comment edit and delete
syrius527 May 1, 2023
55f7609
fix handleCommentDelete logic, change designs
syrius527 May 3, 2023
f39a671
fix comment data type(author)
syrius527 May 3, 2023
ae45550
Merge pull request #11 from snulion11th-preSeminar/dj/comment
syrius527 May 3, 2023
f6fe9e5
Merge branch 'dj/comment' into jihyun/detail
jihyune May 3, 2023
f15087f
Merge pull request #15 from snulion11th-preSeminar/jihyun/detail
jihyune May 3, 2023
ba5279b
Merge pull request #16 from snulion11th-preSeminar/dj/comment
jihyune May 3, 2023
ce2efc4
chore: case
jihyune May 3, 2023
ba19751
chore: case
jihyune May 3, 2023
d25dac7
Delete src/components/form directory
jihyune May 3, 2023
8631c62
add console.logs for api call functions
syrius527 May 3, 2023
3f58ba3
add console.log(like), delete legacy
syrius527 May 3, 2023
9d24e87
chore: change pw input type to password
syrius527 May 3, 2023
6ee9bfd
Merge branch 'week9/solution' of https://github.com/snulion11th-preSe…
whwoohw May 3, 2023
b41ba84
tag 자동완성 생성
whwoohw May 4, 2023
8c20b9f
fix: post form tag ui
jihyune May 7, 2023
7cb6f03
Merge pull request #18 from snulion11th-preSeminar/week9/form-tag-ui
jihyune May 8, 2023
726bc95
feat: clean up code
jihyune May 9, 2023
5766e90
fix: clean up code
jihyune May 9, 2023
a883ef5
fix: remove redundant code
jihyune May 9, 2023
35dc695
fix: rename file
jihyune May 9, 2023
c5b1b73
fix: form attribute name to id
jihyune May 9, 2023
ff4fc5e
feat: add annotation
jihyune May 9, 2023
66ae211
Merge pull request #19 from snulion11th-preSeminar/week9/edit-post
jihyune May 9, 2023
2452e5e
fix: move logic page to component
jihyune May 10, 2023
9e83093
Merge pull request #20 from snulion11th-preSeminar/week9/component
jihyune May 10, 2023
a20b5c1
chore: typo
jihyune May 10, 2023
0514ecd
fix: change input attribute name to id
syrius527 May 10, 2023
4412c1f
merging
syrius527 May 10, 2023
18c7b85
fix: route component Home -> HomePage
syrius527 May 10, 2023
547b302
fix: remove header css
jihyune May 11, 2023
86667d6
chore: fix annotation
jihyune May 13, 2023
3fd13c5
fix: for api
jihyune May 13, 2023
3a22d28
fix SignUpPage, SignInPage 컴포넌트화
syrius527 May 13, 2023
faef495
feat: make component
jihyune May 13, 2023
88591ea
fix: remove redundant function
jihyune May 13, 2023
4550d1c
[feat] create axios.js
whwoohw May 13, 2023
b5af869
[feat] create api.js
whwoohw May 13, 2023
09a173f
[fix] getPost API
whwoohw May 13, 2023
a9a37e5
[fix] getTags API
whwoohw May 13, 2023
dc5e801
[fix] change handleTagFilter
whwoohw May 13, 2023
b38336f
[fix] getPost API
whwoohw May 13, 2023
0dd1f97
[fix] getComments API
whwoohw May 13, 2023
c9f9d35
[fix] signUp API
whwoohw May 13, 2023
e303478
[fix] signIn API
whwoohw May 13, 2023
2510e0e
[fix] Header with access token
whwoohw May 13, 2023
36132a7
[fix] PostCreatePage with api
whwoohw May 13, 2023
2f738f5
[fix] Comment createComment api
whwoohw May 13, 2023
3fd7c7c
[fix] PostDetailPage with user
whwoohw May 13, 2023
5174091
[fix] PostEditPage with API
whwoohw May 13, 2023
39b1490
[fix] CommentElements with edit, with user
whwoohw May 13, 2023
00b46b3
[fix] Small Post and Big Post Like Button
whwoohw May 13, 2023
8a27521
[fix] Delete Post and Comment with API
whwoohw May 13, 2023
9943d7f
feat : react-cookie
styu12 May 15, 2023
7607969
CommentElement 구조 변, Small & Big Post 구조 변경
whwoohw May 18, 2023
9808262
update : 코드 순서, 주석 변경
styu12 May 19, 2023
fd7d7af
[feat] detailpost comment
jiwoo-hanl May 20, 2023
51c7d6e
week10 solution
whwoohw May 20, 2023
99f9547
week10 hw
May 23, 2023
e468a3e
save
jiwoo-hanl May 26, 2023
626a4a9
Merge remote-tracking branch 'upstream/week10/solution'
jiwoo-hanl May 26, 2023
9e71575
Merge branch 'main' into jiwoo
jiwoo-hanl May 26, 2023
581f2e8
feat: deletePost, likePost, deleteComment
jiwoo-hanl May 27, 2023
3647617
[feat] mypage
jiwoo-hanl Jun 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Description(구현한 기능)

- [ ]
- [ ]


## Type of change (전 주차 대비)

Please delete options that are not relevant.

- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as
expected)


## Screenshots (if appropriate):
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.vscode/*
101 changes: 45 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,59 @@
# Getting Started with Create React App
# 11th snulion pre-seminar react

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Goal

## Available Scripts
- 2023 1학기 블로그만들기 세션에서 backend 파트 세미나를 위한 base code 제작
- 1학기 동아리 활동 간 필요한 매 주차 solution code 제작

In the project directory, you can run:
## Curriculum

### `npm start`
- 8주차(5/6) React 입문
- 발표 : 김동훈 김시원 김진호
- 검수 : 김주연 한우현 홍정우
- 9주차(5/13) React 실습
- 발표 : 김지현 한승오 홍정우
- 검수 : 김시원 이동재 이희승
- 10주차(5/20) React 심화1
- 발표 : 이동재 한우현
- 검수 : 김진호 이희승 박평재 한승오
- 10주차(5/27) React 심화2
- 발표 : 김동훈 한우현
- 검수 : 김시원 김지현 박평재 이동재

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
## Deadline

The page will reload when you make changes.\
You may also see any lint errors in the console.
- 8주차(5/6) : 2/14 자정까지
- 9주차(5/13) : 2/28 자정까지
- 10주차(5/20) : 4/1 자정까지
- 11주차(5/27) : 5/1 자정까지

### `npm test`
## Rule

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### 1. time limit

### `npm run build`
- 정해진 deadline까지 code base를 완성해주세요.
- 다음 주차 사람은 이를 기반으로 세미나를 준비하게 됩니다.
- 불가피하게 code base 변경이 필요할 경우 세미나 팀에 꼭 노티주세요.

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
### 2. Process

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
1) branch 생성
- solution branch에서 branch를 파서 작업하시면 됩니다.
- branch 명은 week8/solution, week9/solution, week10/solution, week11/solution 으로 해주세요.
- 협업이 필요할시 jh/week5, hs/week5 이런식으로 작업하고 최종적으로 soluion/week2로 합쳐주시면 됩니다. 이 부분은 자유롭게

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
2) commit
- commit message는 다음 중 하나로 작성해주세요.
- feat: 새로운 feature추가
- fix: 내용 수정
- refactor: 최적화
- chore: 사소한 변경(lint, typo ...)

### `npm run eject`
3) pull request
- 작업 후 solution branch로 pull request 날려주세요.
- reviewers : 다른 발표자 1명
- assignees : 자기 자신

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
4) merge
- 발표자 2명 중 1명이 merge 하시고 노티 주세요.
- merge 후에 week8/solution, week9/solution, week10/solution, week11/solution branch는 반드시 남겨주세요. 삭제 금지 !
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "0506",
"name": "snulion-react-1",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.4.0",
"react": "^18.2.0",
"react-cookie": "^4.1.1",
"react-dom": "^18.2.0",
"react-router-dom": "^6.11.1",
"react-router-dom": "^6.8.1",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down Expand Up @@ -37,6 +39,6 @@
]
},
"devDependencies": {
"tailwindcss": "^3.3.2"
"tailwindcss": "^3.2.6"
}
}
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.App {
.app {
overflow-x: hidden;
box-sizing: border-box;
display: flex;
Expand Down
7 changes: 4 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import logo from "./logo.svg";
import Header from "./components/Header";
import Footer from "./components/Footer";
import "./App.css";

import { BrowserRouter, Route, Routes } from "react-router-dom";
import HomePage from "./routes/HomePage";
import PostCreatePage from "./routes/PostCreatePage";
import PostEditPage from "./routes/PostEditPage";
import SignUpPage from "./routes/SignUpPage";
import PostDetailPage from "./routes/PostDetailPage";
import SignInPage from "./routes/SignInPage";
import MyPage from "./routes/MyPage"

function App() {
return (
<div className="App">
<div className="app">
<BrowserRouter>
<Header />
<Routes>
Expand All @@ -29,6 +28,8 @@ function App() {
<Route path="/signup" element={<SignUpPage />} />
{/* sign up */}
<Route path="/signin" element={<SignInPage />} />
{/* my info */}
<Route path="/mypage" element={<MyPage />} />
</Routes>
<Footer />
</BrowserRouter>
Expand Down
150 changes: 150 additions & 0 deletions src/apis/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
import { instance, instanceWithToken } from "./axios";

// Account 관련 API들
export const signIn = async (data) => {
const response = await instance.post("/account/signin/", data);
if (response.status === 200) {
window.location.href = "/";
} else {
console.log("Error");
}
};

export const signUp = async (data) => {
const response = await instance.post("/account/signup/", data);
if (response.status === 200) {
window.location.href = "/";
} else {
console.log("Error");
}
return response;
};
// src/apis/api.js
// ...
// 추가
export const getPosts = async () => {
const response = await instance.get("/post/");
return response.data;
};

export const getPost = async (id) => {
const response = await instance.get(`/post/${id}/`);
return response.data;
};

export const createPost = async (data, navigate) => {
const response = await instanceWithToken.post("/post/", data);
if (response.status === 201) {
console.log("POST SUCCESS");
navigate("/");
} else {
console.log("[ERROR] error while creating post");
}
};

export const updatePost = async (id, data, navigate) => {
const response = await instanceWithToken.patch(`/post/${id}/`, data);
if (response.status === 200) {
console.log("POST UPDATE SUCCESS");
navigate("/");
} else {
console.log("[ERROR] error while updating post");
}
};

export const getUser = async () => {
const response = await instanceWithToken.get("/account/info/");
if (response.status === 200) {
console.log("GET USER SUCCESS");
} else {
console.log("[ERROR] error while updating comment");
}
return response.data;
};

// 과제!!
export const deletePost = async (id, navigate) => {
const response = await instanceWithToken.delete(`/post/${id}/`);
if (response.status === 204) {
console.log("POST DELETE SUCCESS");
navigate("/");
} else {
console.log("[ERROR] error while deleting post");
}
};

// 과제!!
export const likePost = async (postId) => {
const response = await instanceWithToken.post(`/post/${postId}/like/`);
window.location.reload();
return response.data;
};

// Tag 관련 API들
export const getTags = async () => {
const response = await instance.get("/tag/");
return response.data;
};

export const createTag = async (data) => {
const response = await instanceWithToken.post("/tag/", data);
if (response.status === 201) {
console.log("TAG SUCCESS");
} else {
console.log("[ERROR] error while creating tag");
}
return response; // response 받아서 그 다음 처리
};

// Comment 관련 API들
export const getComments = async (postId) => {
const response = await instance.get(`/comment/?post=${postId}`);
return response.data;
};

export const createComment = async (data) => {
const response = await instanceWithToken.post("/comment/", data);
if (response.status === 201) {
console.log("COMMENT SUCCESS");
window.location.reload(); // 새로운 코멘트 생성시 새로고침으로 반영
} else {
console.log("[ERROR] error while creating comment");
}
};

export const updateComment = async (id, data) => {
const response = await instanceWithToken.patch(`/comment/${id}/`, data);
if (response.status === 200) {
console.log("COMMENT UPDATE SUCCESS");
window.location.reload();
} else {
console.log("[ERROR] error while updating comment");
}
};

// 과제 !!
export const deleteComment = async (id) => {
const response = await instanceWithToken.delete(`/comment/${id}/`);
return response.data;
};

export const getMyPage = async () => {
const response = await instanceWithToken.get("/account/mypage/");
if (response.status === 200) {
console.log("GET USER SUCCESS");
} else {
console.log("[ERROR] error while updating comment");
}
return response.data;
};

export const MyInfo = async (data) => {
const response = await instanceWithToken.patch(`/account/mypage/`, data);
if (response.status === 200) {
console.log("MYINFO UPDATE SUCCESS");
window.location.reload();
} else {
console.log("[ERROR] error while updating myinfo");
}
return response.data;
};
Loading