-
Notifications
You must be signed in to change notification settings - Fork 2
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] profile context integration with view plants and add details #63
[feat] profile context integration with view plants and add details #63
Conversation
ee84673
to
407fa28
Compare
869222b
to
7d8ef47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking great! will leave some comments about next steps
components/NavigationBar/index.tsx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we remove this file if we're not using it anywhere?
); | ||
const router = useRouter(); | ||
|
||
const getDefaultDate = () => new Date().toISOString().substring(0, 10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this date is a little funky. it's 1:48am 12/13, but the plant i just added says 12/12.
Perhaps we should look into other date formatting options e.g. toLocaleDateString()
and set it to US Eastern Time, since that's where users will be.
const router = useRouter(); | ||
|
||
if (profileReady && !profileData) { | ||
router.push('/view-plants'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: we should replace all routes with CONFIG
e.g.
import CONFIG from '@/lib/configs';
<Link href={CONFIG.login}>Login</Link>
What's new in this PR 🧑🌾
Description
Screenshots
enabled next (when planting type is filled out)
disabled next
How to review
Next steps
userId!
label
prop toplaceholder
label
prop that displays the label of the inputRelevant links
Online sources
Related PRs
CC: @ccatherinetan