-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixup broken buttons, styling changes #25
Conversation
<ThemeContext.Provider value={{ lightMode, setLightMode }}> | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<Navbar /> | ||
{children} | ||
</body> | ||
</html> | ||
</ThemeContext.Provider> |
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 need to move the context provider into the root layout, otherwise it only exists for /
export function set_username(username: string) {console.log(username)} //placeholder | ||
|
||
export function handleUsernameSubmit(usernameState: string) { | ||
set_username(usernameState); | ||
} | ||
|
||
export function handleUsernameChange(e: React.FormEvent<HTMLInputElement>, setUsernameState: React.Dispatch<React.SetStateAction<string>>) { | ||
|
||
console.log("test") | ||
setUsernameState(e.currentTarget.value); | ||
|
||
} | ||
|
||
export function set_bio(bio: string) {} //placeholder | ||
|
||
export function handleBioSubmit(bioState: string) { | ||
set_bio(bioState); | ||
} | ||
|
||
export function handleBioChange(e: React.FormEvent<HTMLTextAreaElement>, setBioState: React.Dispatch<React.SetStateAction<string>>) { | ||
|
||
setBioState(e.currentTarget.value); | ||
|
||
} | ||
|
||
export function toggleLightMode(lightMode: boolean) { | ||
//backend call | ||
} |
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.
These will all be hooks with rspc.useQuery
, so can go for now.
</div> | ||
|
||
<form |
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.
<form>
is the de-facto way of handling input forms in HTML. We could use react-form
or similar, but that's effort.
"@faker-js/faker": "^8.4.1", | ||
"@tanstack/react-virtual": "^3.1.3", |
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.
These weren't in package.json
and breaks a clean install without them.
<form>
for input, it's tidier