Closed kleneway closed 1 year ago
Hello human! 👋
This PR was created by Otto to address the issue Create src/components/ProjectCard.tsx
Please review the PR carefully. Auto-generated code can and will contain subtle bugs and mistakes.
If you identify code that needs to be changed, please reject the PR with a specific reason. Be as detailed as possible in your comments. Otto will take these comments, make changes to the code and push up changes. Please note that this process will take a few minutes.
Once the code looks good, approve the PR and merge the code.
Summary:
Create a React component for src/components/ProjectCard.tsx. Here are the instructions:
Issue: Create a ProjectCard React Component
Description
We need to create a new React component called
ProjectCard.tsx
that will be responsible for displaying a project card in our application. This component will be used on the main dashboard page to show the list of projects the user is working on. The component should be written in TypeScript using ES6 syntax, such as arrow functions, and utilize Tailwind CSS for styling.Requirements
ProjectCard.tsx
inside thesrc/components
directory.React
from 'react'Project
type from~/types
Props
interface for this component that includes the following properties:project
: AProject
object that represents the project to be displayed in the card.ProjectCard
that accepts theProps
interface as its props.project
prop, such asname
,description
, andcreatedAt
.h3
) that displays the project name.ProjectCard
component as the default export.Example Usage
Here's an example of how the
ProjectCard
component will be used:Notes
~
for the root directory (src). The tsconfig paths configuration is set as follows:{"~/*": ["./src/*"]}
.Project
object to ensure it displays correctly and is responsive on different screen sizes.Please submit a pull request with your changes once the component is complete. If you have any questions or need clarification, feel free to reach out.