diff --git a/public/language/en.json b/public/language/en.json index 0f386ef..bafee50 100644 --- a/public/language/en.json +++ b/public/language/en.json @@ -136,5 +136,10 @@ "reading": "Reading", "continue-reading": "Continue Reading", "delete-all": "Delete All", + "price": "Price", + "content": "Content", + "collaborators": "Collaborators", + "update-by": "Update By", + "search-for-users": "Search for users", "description_0": "The largest online comic reading website updated continuously every day - Join reading and discussing with more than 10 million members 🎉 at YouthBook ❤️💛💚" } \ No newline at end of file diff --git a/public/language/vi.json b/public/language/vi.json index 890c907..491aae3 100644 --- a/public/language/vi.json +++ b/public/language/vi.json @@ -137,5 +137,10 @@ "not-found-history": "Không tìm thấy lịch sử", "continue-reading": "Đọc tiếp", "delete-all": "Xóa tất cả", + "price": "Giá", + "content": "Nội dung", + "collaborators": "Collaborators", + "update-by": "Người cập nhật", + "search-for-users": "Tìm tài khoản", "description_0": "Web đọc truyện tranh online lớn nhất được cập nhật liên tục mỗi ngày - Cùng tham gia đọc truyện và thảo luận với hơn 10 triệu thành viên 🎉 tại YouthBook ❤️💛💚" } \ No newline at end of file diff --git a/src/components/Header/AccountInfo.tsx b/src/components/Header/AccountInfo.tsx index 2d87ce6..79b9861 100644 --- a/src/components/Header/AccountInfo.tsx +++ b/src/components/Header/AccountInfo.tsx @@ -85,7 +85,7 @@ const AccountInfo = ({ userInfo }: AccountInfoProps) => { {translate('account-page')} - {userInfo.role === ROLES.admin && ( + {(userInfo.role === ROLES.admin || userInfo.role === ROLES.collaborators) && ( <> { { title: translate('new-comic-title'), link: { - pathname: APP_PATH.new, + pathname: APP_PATH.recent, search: createSearchParams({ type: 'all', page: '1', }).toString(), }, name: translate('new-comic'), - isCurrent: useMatch(APP_PATH.new), + isCurrent: useMatch(APP_PATH.recent), }, { title: translate('top-comic-title'), diff --git a/src/components/Pagination/Pagination.tsx b/src/components/Pagination/Pagination.tsx index d8f7748..a3bf2c7 100644 --- a/src/components/Pagination/Pagination.tsx +++ b/src/components/Pagination/Pagination.tsx @@ -15,7 +15,6 @@ const Pagination = ({ page, totalPage, queryConfig }: PaginationProps) => { const RANGE = 2; const lang = useAppSelector((state) => selectLanguage(state.settings)); const translate = useTranslation(lang); - if (totalPage <= 1) return <>; const _renderPagination = () => { let dotAfter = false; diff --git a/src/components/Preview/ListPreview.tsx b/src/components/Preview/ListPreview.tsx index c4ce641..e24a1c6 100644 --- a/src/components/Preview/ListPreview.tsx +++ b/src/components/Preview/ListPreview.tsx @@ -8,7 +8,7 @@ interface ListPreviewProps { const ListPreview = ({ data, className }: ListPreviewProps) => { return ( -