-
Notifications
You must be signed in to change notification settings - Fork 0
Create Meal Form in Frontend #25
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
base: staging
Are you sure you want to change the base?
Conversation
Logan-Dang
commented
Jul 25, 2025
- reglue dev server together
- implement auth in frontend
- create meal form in frontend
- implement auth in frontend - create meal form in frontend
c5f4754
to
7fca7f4
Compare
return <AppConsumer />; | ||
}); | ||
|
||
const AppConsumer = component$(() => { |
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.
we should rename and place in own file as auth page im thinking
|
||
const AppConsumer = component$(() => { | ||
const form: Signal<'login' | 'register'> = useSignal('login'); | ||
const darkMode = useSignal(localStorage.getItem('darkMode') === 'true'); |
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.
I think we should also abstract out the use of localStarage into own file so if we want to update it to cookies or something else, its a one place file change
|
||
const toggleDarkMode = $(() => { | ||
darkMode.value = !darkMode.value; | ||
localStorage.setItem('darkMode', String(darkMode.value)); |
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.
same as above
user: Signal<User>; | ||
}; | ||
|
||
export const Dashboard = component$((props: DashboardProps) => { |
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.
.... ya this whole file has, more than it needs, as well as very specific to meal tally, i appreciate it but likely not the direction should be taking at this time, think we can remove the specific to meal tally stuff but keep the dashboard page