Remove SupabaseStatus component since production mode is active
cgen-022401ce8f864c1fbc53313045b068c7
This commit is contained in:
parent
89d9c4a196
commit
dc34cb6fa0
1 changed files with 2 additions and 52 deletions
|
|
@ -1,54 +1,4 @@
|
||||||
import React from "react";
|
// SupabaseStatus component removed - running in production mode with Supabase configured
|
||||||
import { isSupabaseConfigured } from "@/lib/supabase";
|
|
||||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
|
||||||
import { Button } from "@/components/ui/button";
|
|
||||||
import { Database, ExternalLink, Info } from "lucide-react";
|
|
||||||
|
|
||||||
export default function SupabaseStatus() {
|
export default function SupabaseStatus() {
|
||||||
// Only show if Supabase is not configured (demo mode)
|
return null;
|
||||||
if (isSupabaseConfigured) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="fixed bottom-4 right-4 z-50 max-w-md" data-supabase-status>
|
|
||||||
<Alert className="border-blue-500/50 bg-blue-500/10 text-blue-300">
|
|
||||||
<Info className="h-4 w-4" />
|
|
||||||
<AlertDescription className="space-y-3">
|
|
||||||
<div>
|
|
||||||
<strong>Demo Mode:</strong> Full functionality with simulated data.
|
|
||||||
All features are available for testing!
|
|
||||||
</div>
|
|
||||||
<div className="flex gap-2">
|
|
||||||
<Button
|
|
||||||
size="sm"
|
|
||||||
variant="outline"
|
|
||||||
className="border-blue-500/50 text-blue-300 hover:bg-blue-500/20"
|
|
||||||
onClick={() => {
|
|
||||||
// Hide the status notification
|
|
||||||
const notification = document.querySelector(
|
|
||||||
"[data-supabase-status]",
|
|
||||||
);
|
|
||||||
if (notification) {
|
|
||||||
notification.style.display = "none";
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Info className="h-3 w-3 mr-1" />
|
|
||||||
Got it!
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
size="sm"
|
|
||||||
variant="outline"
|
|
||||||
className="border-blue-500/50 text-blue-300 hover:bg-blue-500/20"
|
|
||||||
onClick={() => window.open("/login", "_self")}
|
|
||||||
>
|
|
||||||
<ExternalLink className="h-3 w-3 mr-1" />
|
|
||||||
Try Login
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</AlertDescription>
|
|
||||||
</Alert>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue