-
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
feat: auth screens #8
Conversation
typeWolffo
commented
Jul 16, 2024
•
edited
Loading
edited
app.enableCors({ | ||
origin: "https://app.guidebook.localhost", | ||
credentials: 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.
origin should come from envs so it's usable when deployed
"morgan": "^1.10.0", | ||
"next-themes": "^0.3.0", |
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.
what's the next-themes for?
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.
removed
<Sheet open={isSheetOpen} onOpenChange={setIsSheetOpen}> | ||
<SheetContent side="left"> | ||
<SheetHeader> | ||
<SheetDescription> | ||
<div className="flex flex-col gap-2 px-2"> | ||
<div> |
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 the Sheet itself can be a seprate compoent
document.documentElement.classList.toggle("dark"); | ||
localStorage.setItem( | ||
"theme", |
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.
you can add a listerner somewhere on top so it also renders correct mode after refresh
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.
@k1eu so I made the theme toggle completely new using the zustand store. What do you think?
(useTheme from shadcn doesn't seem to support SPA mode in the remix)
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.
nice 🗡️
3e51888
to
9531003
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.
- typebox instead of zod
- 401 not making refresh calls when logged out
- selector in zustand