-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
[UI/Refactor] Admin Settings #249
Conversation
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.
Thanks for the refactor! I added a couple of minor comments.
@@ -1,266 +1,11 @@ | |||
"use client"; |
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.
This can be a server component now and replace useSession
with getServerAuthSession
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.
This is throwing error, as we are using useClientConfig
in serverStats component, which can not be used if the parent is not client side.
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 access it by importing it directly from shared/config.ts
const latestRelease = useLatestRelease(); | ||
|
||
let newRelease; | ||
if (latestRelease && currentRelease != latestRelease) { |
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.
potentially an issue for you to fix: #201
if the latest docker container is used, the UI still shows that there is a newer version available.
Desktop
Mobile