[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 Component:
- Implemented the
AuthorDetail.jsxfile in thesrc/components/authors/directory. - The component fetches and displays the author's name, biography, and a list of their published works.
- Implemented the
-
Added Prop Types:
- Utilized PropTypes to enforce type checking for the component's props, ensuring that the correct data types are passed.
-
Styling:
- Added basic CSS styles to enhance the visual 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
This new component will enhance the user experience by providing comprehensive information about authors, making it easier for users to engage with the content.