-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 리뷰 작성하기 페이지 접속시 최상단으로 * fix: lint * fix: margin 수정 * feat: 이미지 업로드 로직 * feat: api params 수정 * feat: 리뷰 get api 연결 * fix: 이미지 post 수정 시도 * fix: 이미지 저장 api 수정 * chore:불필요한 코드 삭제 * fix:빌드 오류 해결 * feat: 리뷰 날짜 받아오기 * feat:날짜 저장 * feat: 리뷰 탭 필터 로직 수정 * feat: 리뷰 탭 회색 별 추가 * feat: 필터 바깥 누르면 저장 X 되도록 로직 수정 * feat: key 변경 * feat: 리뷰 탭 라우터 분리 * feat: 글자 가운데 * 처리 * feat: 리뷰 탭 디폴트 카테고리 유저 정보 받아오기 구현' * fix: 서버 오류 수정 * fix: 파일명 필터링 기능 추가 * fix:유니코드 수정 * fix: key warning 해결 * feat: 이름 글자수 해결 * feat: 리뷰 등록 후 리뷰 get 오류 수정 * feat: 이미지 비율 조정 * feat:api 불러오기 * fix: 지역 정보 업데이트 로직 수정 * feat: 여행자 유형 데이터 적용 * feat:회원 정보 변경 데이터 전송 * feat: 여행자유형 변경 데이터 전송 * feat: 로그아웃 구현 * feat: 변경 정보 실시간 반영 * feat: 입력 정보 없는 경우 경고 표시 추가 --------- Co-authored-by: seobbang <[email protected]>
- Loading branch information
Showing
11 changed files
with
344 additions
and
99 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,20 @@ | ||
import { unitripSupabase } from '@/utils/supabaseClient'; | ||
|
||
const updateUniversalInfo = async (universal_type: string[]) => { | ||
const kakaoId = sessionStorage.getItem('kakao_id'); | ||
|
||
const { status, error } = await unitripSupabase | ||
.from('USER') | ||
.update({ | ||
universal_type, | ||
}) | ||
.eq('kakao_id', kakaoId); | ||
|
||
if (error) { | ||
throw new Error('오류가 발생했습니다'); | ||
} | ||
|
||
return status; | ||
}; | ||
|
||
export default updateUniversalInfo; |
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,23 @@ | ||
import { Region } from '@/components/SelectRegion'; | ||
import { unitripSupabase } from '@/utils/supabaseClient'; | ||
|
||
const updateUserInfo = async (selectedRegion: Region) => { | ||
const kakaoId = sessionStorage.getItem('kakao_id'); | ||
|
||
const changedData = selectedRegion.city + ' ' + selectedRegion.town; | ||
|
||
const { status, error } = await unitripSupabase | ||
.from('USER') | ||
.update({ | ||
region: changedData, | ||
}) | ||
.eq('kakao_id', kakaoId); | ||
|
||
if (error) { | ||
throw new Error('오류가 발생했습니다'); | ||
} | ||
|
||
return status; | ||
}; | ||
|
||
export default updateUserInfo; |
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 was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.