[JITERA] Implement AuthorDetail Component
Overview
This pull request introduces the AuthorDetail component, which is designed to display detailed information about a specific author. This component will enhance the user experience by providing a dedicated view for author profiles.
Changes Explained
-
Created
AuthorDetail.jsx: A new component that fetches and displays author information based on the provided author ID. -
Added PropTypes: Implemented PropTypes for type-checking the props passed to the
AuthorDetailcomponent, ensuring that the correct data types are used. - Styled the Component: Added basic styling to improve the visual presentation of the author details.
- Integrated API Call: Implemented an API call to fetch author data, handling loading and error states appropriately.
-
Unit Tests: Added unit tests to verify the functionality of the
AuthorDetailcomponent, ensuring it behaves as expected under various scenarios.
This new component will be integrated into the author listing page, allowing users to click on an author and view their details seamlessly.