-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ feat(settings-page-improvements): Enhance UI components on se…
…ttings page Description: This commit introduces enhancements to the user interface components on the settings page. The changes are part of the ongoing work on the `settings-page-improvements` branch. - In `app/(protected)/_components/navbar.tsx`, `app/(protected)/settings/page.tsx`, and `components/client-only.tsx`, updates have been made to handle the UI enhancements. Changes: - Update `app/(protected)/_components/navbar.tsx` to modify the text and hover colors - Update `app/(protected)/settings/page.tsx` and `components/client-only.tsx` for functionality updates This commit doesn't introduce any breaking changes. The updates are compatible with the existing codebase. Co-authored-by: Ricardo Esteves <[email protected]>
- Loading branch information
1 parent
a936aae
commit 77e4828
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { useIsClient } from "@/hooks/use-is-client"; | ||
import Spinner from "./spinner"; | ||
|
||
export function ClientOnly({ children }: { children: React.ReactNode }) { | ||
const isClient = useIsClient(); | ||
|
||
return isClient ? <>{children}</> : null; | ||
return isClient ? <>{children}</> : <Spinner />; | ||
} |