-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/offline main page #18
Conversation
src/api/home.ts
Outdated
const getRecentVideoPosts = async (pageToken:number|null): Promise<videoPostsResponse> => { | ||
const res = await axios.request<videoPostsResponse>({ | ||
baseURL: API_URL, | ||
url: '/v1/post-list/recent-videos', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webdonalds/YAS-backend#30 에서는 /v1/logoffed-post-list라고 되어있는데 여기선 v1/post-list 로 쓰고 있습니다.
둘중에 하나는 고쳐져야겠네요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗 그렇네요 지적 감사합니다.
src/api/home.ts
Outdated
const getHotVideoPosts = async (): Promise<videoPostsResponse> => { | ||
const res = await axios.request<videoPostsResponse>({ | ||
baseURL: API_URL, | ||
url: '/v1/post-list/hot-videos', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 고쳐져야 합니다.
const getYoutubeThumbnailUrl = (id: string) => { | ||
return `https://img.youtube.com/vi/${id}/0.jpg`; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다른 곳에서도 사용되는 함수같은데 util.ts 파일 같은것을 만들어서 따로 관리해도 좋지 않을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 말하신대로 따로 빼면 좋을 것 같습니다. 앞으로도 여러곳에서 사용될 예정입니다.
모두 변경 완료 |
resolves #15
로그인이 되어있지 않은 유저에 대한 메인 페이지
스크롤 시 추가 영상 불러오기 기능.