Skip to content

Commit

Permalink
warning theme controls
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoLuglio committed Oct 13, 2024
1 parent 0150e88 commit 6119fd0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/ThemeControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('')

const {
Expand Down Expand Up @@ -131,6 +133,11 @@ const ThemeControls: React.FC = () => {
return (
<section className="flex flex-col gap-5 w-full">
<h2 className="text-xl font-semibold">Theme Controls</h2>
{!user && (
<p className="text-xs text-muted-foreground">
You must be logged in to save and/or download created themes.
</p>
)}
<TooltipProvider>
<div className="flex gap-5">
<div className="flex flex-1 items-end gap-4">
Expand Down

0 comments on commit 6119fd0

Please sign in to comment.