[JITERA] Add AuthorDetail Component
Created by: kstayner
Overview
This pull request introduces the AuthorDetail component, which is responsible for displaying 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: This new component fetches and displays the author's details, including their name, biography, and a list of their published works. - Added Prop Types: Implemented prop types to ensure that the component receives the correct data types, improving maintainability and reducing potential bugs.
- Styled the Component: Added basic styling to ensure the component is visually appealing and consistent with the overall application design.
- Integrated with Redux: Connected the component to the Redux store to fetch author data dynamically based on the selected author from the list.
-
Unit Tests: Added unit tests to verify the functionality of the
AuthorDetailcomponent, ensuring that it behaves as expected under various scenarios.
This component will be a crucial part of the author management feature, allowing users to view detailed information about authors in a user-friendly manner.