From 7373d641235ef92ab7f8c17506aebbd154bcb3a4 Mon Sep 17 00:00:00 2001 From: Norbert Maciaszek Date: Fri, 15 Aug 2025 15:20:04 +0200 Subject: [PATCH] Implement loading spinner and Polish translations: add Spinner component for loading states in Search and SearchList, update UI text to Polish for improved localization, and enhance Pagination styles for better visibility. --- src/app/(withGlobalData)/search/page.tsx | 2 +- src/components/atoms/Pagination/index.tsx | 7 ++-- src/components/atoms/Spinner/index.tsx | 5 +++ .../atoms/Spinner/styles.module.css | 32 +++++++++++++++++ .../molecules/SearchMovies/index.tsx | 35 +++++++++++++------ .../Navbar/components/Search/index.tsx | 9 ++++- 6 files changed, 73 insertions(+), 17 deletions(-) create mode 100644 src/components/atoms/Spinner/index.tsx create mode 100644 src/components/atoms/Spinner/styles.module.css diff --git a/src/app/(withGlobalData)/search/page.tsx b/src/app/(withGlobalData)/search/page.tsx index 045d673..23af2d9 100644 --- a/src/app/(withGlobalData)/search/page.tsx +++ b/src/app/(withGlobalData)/search/page.tsx @@ -11,7 +11,7 @@ export default async function SearchPage({ <>

- Search for: {s} + Wyszukiwanie: {s}

diff --git a/src/components/atoms/Pagination/index.tsx b/src/components/atoms/Pagination/index.tsx index 0226cfe..f96f925 100644 --- a/src/components/atoms/Pagination/index.tsx +++ b/src/components/atoms/Pagination/index.tsx @@ -1,4 +1,3 @@ -import Link from "next/link"; import { FC } from "react"; type Props = { @@ -13,11 +12,11 @@ export const Pagination: FC = ({ onPageChange, }) => { return ( -
    +
      {currentPage > 1 && (