From 6119fd0939210fe2ca1fec570219cdef5e92d7fe Mon Sep 17 00:00:00 2001 From: Rodrigo Luglio Date: Sun, 13 Oct 2024 12:58:19 -0300 Subject: [PATCH] warning theme controls --- src/components/ThemeControls.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/ThemeControls.tsx b/src/components/ThemeControls.tsx index d932614..cd36970 100644 --- a/src/components/ThemeControls.tsx +++ b/src/components/ThemeControls.tsx @@ -26,8 +26,10 @@ import ThemeSaver from './ThemeSaver' import { ColorScheme } from '@/lib/types/colors' import { randomInteger } from '@/lib/utils/math' import { ThemeLoader } from './ThemeLoader' +import { useUser } from '@clerk/nextjs' const ThemeControls: React.FC = () => { + const { user } = useUser() const [themeName, setThemeName] = useState('') const { @@ -131,6 +133,11 @@ const ThemeControls: React.FC = () => { return (

Theme Controls

+ {!user && ( +

+ You must be logged in to save and/or download created themes. +

+ )}