[JITERA] Add AuthorDetail Component
Created by: kstayner
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
-
Component Creation:
- A new file
AuthorDetail.jsxhas been created in thesrc/components/authors/directory. - The component is structured to accept props for author details such as name, biography, and a list of works.
- A new file
-
Styling:
- Basic CSS styles have been added to ensure the component is visually appealing and aligns with the overall design of the application.
-
Prop Types:
- Prop types have been defined to ensure that the component receives the correct data types, improving maintainability and reducing potential bugs.
-
Testing:
- Basic unit tests have been added to verify that the component renders correctly with the provided props.
This new component will be integrated into the author listing page, allowing users to click on an author and view their details seamlessly.