Skip to content

Pagination Fixed For Better User Interface #1094

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/Homepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ function App() {
<Sidebar />
<div className="w-full pl-5 pr-4 md:h-screen md:w-[77%] md:overflow-y-scroll md:py-7" ref={profilesRef}>
<Search onSearch={handleSearch} />
{profiles.length === 0 && searching ? <NoResultFound /> : renderProfiles()}
{combinedData.length > 0 && (
<Pagination
currentPage={currentPage}
Expand All @@ -160,6 +159,7 @@ function App() {
onPrevPage={handlePrevPage}
/>
)}
{profiles.length === 0 && searching ? <NoResultFound /> : renderProfiles()}
</div>
{/* <GTranslateLoader /> */}
</div>
Expand Down
3 changes: 0 additions & 3 deletions src/components/AchievementJourney/IndividualJourney.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const AchieverJourneyPage = () => {
</ul>
</motion.div>
</section>

{/* Journey Sections */}
<section className="container mx-auto space-y-12 px-6">
{[
Expand Down Expand Up @@ -149,7 +148,6 @@ const AchieverJourneyPage = () => {
</div>
))}
</div>

{/* Tips for Success */}
<div className="mb-8">
<h3 className="mb-3 text-2xl font-semibold text-white">Tips for Success</h3>
Expand Down Expand Up @@ -177,7 +175,6 @@ const AchieverJourneyPage = () => {

<section className="mx-auto mt-12 max-w-5xl rounded-2xl border border-gray-700 bg-gray-800 p-8 shadow-lg">
<h2 className="mb-6 text-3xl font-bold tracking-wide text-[#00a6fb]">Inspiration & Guidance</h2>

{achieverData.inspirationAndGuidance.roadmaps.map((roadmap, index) => (
<div
key={index}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pagination/Pagination.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Pagination({ currentPage, totalPages, onNextPage, onPrevPage }) {
};

return (
<div className="flex items-center justify-center gap-12">
<div className="mb-5 flex items-center justify-end gap-12">
<button onClick={handlePrevPage} disabled={currentPage === 1} className="focus:outline-none disabled:opacity-30">
<span
href="#"
Expand Down