Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Made PlantCalendarRow objects clickable #78

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

torinnayak1
Copy link
Collaborator

What's new in this PR 🧑‍🌾

Description

PlantCalendarRow objects in the timeline page are now clickable. When the user clicks on the Calendar Row, they are redirected to the plant page for the specific row's plant that they clicked on.

Screenshots

download

How to review

Please review the changes in styles.ts for the PlantCalendarRow (creates the styled component that wraps the tr), and then the changes in PlantCalendarList (onClick event handler). The packages.json changes are when I was asked if I wanted to add sharp and supabase to my dependencies and I said yes. Kyle essentially wrote the code for me for this sprint (thank you btw) so I am mostly looking for feedback on the cleanliness, efficiency, and syntax of the code.

Next steps

Relevant links

Online sources

https://styled-components.com/docs/basics
https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#userouter-hook

Related PRs

CC: @ccatherinetan

@torinnayak1 torinnayak1 linked an issue Feb 24, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make PlantCalendarRows clickable
1 participant