diff --git a/web_app/src/Librarian/LibrarianLogin.tsx b/web_app/src/Librarian/LibrarianLogin.tsx index 245adf7c..30dc4e24 100644 --- a/web_app/src/Librarian/LibrarianLogin.tsx +++ b/web_app/src/Librarian/LibrarianLogin.tsx @@ -159,7 +159,7 @@ const LibrarianLogin: React.FC = () => { value={username} onChange={handleInputChange} required - maxLength={25} + maxLength={50} className="p-2 border rounded-md w-full" /> @@ -191,7 +191,7 @@ const LibrarianLogin: React.FC = () => { value={password} onChange={handleInputChange} required - maxLength={25} + maxLength={50} className="p-2 border rounded-md w-full" /> diff --git a/web_app/src/Librarian/LibrarianSettings.tsx b/web_app/src/Librarian/LibrarianSettings.tsx index db863552..dfa4a689 100644 --- a/web_app/src/Librarian/LibrarianSettings.tsx +++ b/web_app/src/Librarian/LibrarianSettings.tsx @@ -141,7 +141,7 @@ const LibrarianSettings: React.FC = () => { /> -
{/* ✅ NEW FIELD */} +
{
- {message &&

{message}

} + {message &&

{message}

} + diff --git a/web_app/src/LibraryAdmin/LibraryAdminLogin.tsx b/web_app/src/LibraryAdmin/LibraryAdminLogin.tsx index da5a20ba..d5e7900d 100644 --- a/web_app/src/LibraryAdmin/LibraryAdminLogin.tsx +++ b/web_app/src/LibraryAdmin/LibraryAdminLogin.tsx @@ -80,7 +80,7 @@ const LibraryAdminLogin: React.FC = () => { navigate('/add-library'); } } else { - navigate('/'); // Landing page + navigate('/'); // landing page } } else { @@ -188,7 +188,7 @@ const LibraryAdminLogin: React.FC = () => { value={email} onChange={handleInputChange} required - maxLength={25} + maxLength={50} className={`peer p-2 border rounded-md w-full ${!emailValid ? 'border-red-600' : 'border-gray-300'}`} /> @@ -203,7 +203,7 @@ const LibraryAdminLogin: React.FC = () => { value={password} onChange={handleInputChange} required - maxLength={25} + maxLength={50} className="peer p-2 border rounded-md w-full" /> diff --git a/web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx b/web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx index f9484309..c36ea486 100644 --- a/web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx +++ b/web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx @@ -150,7 +150,7 @@ const RegistrationForm: React.FC = () => { name="firstName" value={formData.firstName} onChange={handleInputChange} - maxLength={25} + maxLength={50} required className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]" /> @@ -163,7 +163,7 @@ const RegistrationForm: React.FC = () => { name="lastName" value={formData.lastName} onChange={handleInputChange} - maxLength={25} + maxLength={50} required className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]" /> @@ -176,7 +176,7 @@ const RegistrationForm: React.FC = () => { name="email" value={formData.email} onChange={handleInputChange} - maxLength={25} + maxLength={50} required className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]" /> @@ -189,7 +189,7 @@ const RegistrationForm: React.FC = () => { name="password" value={formData.password} onChange={handleInputChange} - maxLength={25} + maxLength={50} required className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]" /> @@ -202,7 +202,7 @@ const RegistrationForm: React.FC = () => { name="confirm_password" value={formData.confirm_password} onChange={handleInputChange} - maxLength={25} + maxLength={50} required className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]" /> diff --git a/web_app/src/SystemAdmin/SystemAdminHomePage.tsx b/web_app/src/SystemAdmin/SystemAdminHomePage.tsx index 97b83a15..5e08e861 100644 --- a/web_app/src/SystemAdmin/SystemAdminHomePage.tsx +++ b/web_app/src/SystemAdmin/SystemAdminHomePage.tsx @@ -44,14 +44,14 @@ const SystemAdminDashboard: React.FC = () => { const firstLoad = useRef(true); - useWebSocketNotification('system-administrator/library-requests/pending', () => { + useWebSocketNotification('administrator/library-requests', () => { toast.info("Otrzymano nowe zgłoszenie biblioteki!", { position: "bottom-right", }); console.log("New library request received!"); }); - useWebSocketNotification('system-administrator/driver-requests/pending', () => { + useWebSocketNotification('administrator/driver-applications', () => { toast.info("Otrzymano nowe zgłoszenie kierowcy!", { position: "bottom-right", }); diff --git a/web_app/src/SystemAdmin/SystemAdminLogin.tsx b/web_app/src/SystemAdmin/SystemAdminLogin.tsx index 6dd50cae..176a7a35 100644 --- a/web_app/src/SystemAdmin/SystemAdminLogin.tsx +++ b/web_app/src/SystemAdmin/SystemAdminLogin.tsx @@ -169,7 +169,7 @@ const SysAdminLogin: React.FC = () => { value={email} onChange={handleInputChange} required - maxLength={25} + maxLength={50} className={`peer p-2 border rounded-md w-full ${ !emailValid ? 'border-red-500' : 'border-gray-300' }`} @@ -187,7 +187,7 @@ const SysAdminLogin: React.FC = () => { value={password} onChange={handleInputChange} required - maxLength={25} + maxLength={50} className="peer p-2 border border-gray-300 rounded-md w-full" /> diff --git a/web_app/src/Utils/ContactInfoPage.tsx b/web_app/src/Utils/ContactInfoPage.tsx index b40bd974..14c4cf0d 100644 --- a/web_app/src/Utils/ContactInfoPage.tsx +++ b/web_app/src/Utils/ContactInfoPage.tsx @@ -3,7 +3,7 @@ import {Link} from "react-router-dom"; export const ContactInfoPage: React.FC = () => { return ( -
+
{/* Big Book Logo Image */} { return ( -
+
{/* Big Book Logo Image */} { alt="Book Rider Logo" src="/book-high-res.png" /> -

Informacje o kwestiach prawnych
związanych z systemem Book Rider

+

Informacje o kwestiach prawnych
związanych z systemem BookRider