[JITERA] Add AuthorDetail Component
Overview
This pull request introduces the AuthorDetail component, which is designed to display detailed information about a specific author. This component will be used in the author profile section of the application.
Changes
-
Created
AuthorDetail.jsx:- This file contains the
AuthorDetailcomponent that fetches and displays the author's name, biography, and a list of their published works. - Utilizes React hooks for state management and side effects.
- This file contains the
-
Added PropTypes:
- Implemented PropTypes to ensure that the component receives the correct data types for its props, enhancing type safety.
-
Styling:
- Added basic CSS styles to improve the layout and presentation of the author details.
-
Unit Tests:
- Included unit tests for the
AuthorDetailcomponent to verify that it renders correctly with various props.
- Included unit tests for the
-
Updated Documentation:
- Updated the README file to include information about the new
AuthorDetailcomponent and how to use it.
- Updated the README file to include information about the new
This component will enhance the user experience by providing a dedicated view for author information, making it easier for users to learn more about their favorite authors.