Prettier format pending files
This commit is contained in:
parent
b8d43450a8
commit
76f9494548
3 changed files with 15 additions and 3 deletions
|
|
@ -43,7 +43,11 @@ export default function Layout({ children }: LayoutProps) {
|
||||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => { try { ensureDemoSeed(); } catch {} }, []);
|
useEffect(() => {
|
||||||
|
try {
|
||||||
|
ensureDemoSeed();
|
||||||
|
} catch {}
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-aethex-gradient">
|
<div className="min-h-screen bg-aethex-gradient">
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,11 @@ export const supabase = new Proxy(supabaseClient || {}, {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prop === "channel") {
|
if (prop === "channel") {
|
||||||
if (isSupabaseConfigured && target && typeof target.channel === "function") {
|
if (
|
||||||
|
isSupabaseConfigured &&
|
||||||
|
target &&
|
||||||
|
typeof target.channel === "function"
|
||||||
|
) {
|
||||||
return target.channel.bind(target);
|
return target.channel.bind(target);
|
||||||
}
|
}
|
||||||
return function () {
|
return function () {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,11 @@ export default function Admin() {
|
||||||
const { user, loading, roles } = useAuth();
|
const { user, loading, roles } = useAuth();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const isOwner = Array.isArray(roles) && roles.includes("owner");
|
const isOwner = Array.isArray(roles) && roles.includes("owner");
|
||||||
useEffect(() => { try { ensureDemoSeed(); } catch {} }, []);
|
useEffect(() => {
|
||||||
|
try {
|
||||||
|
ensureDemoSeed();
|
||||||
|
} catch {}
|
||||||
|
}, []);
|
||||||
const demoProfiles: any[] = (function () {
|
const demoProfiles: any[] = (function () {
|
||||||
try {
|
try {
|
||||||
return JSON.parse(localStorage.getItem("demo_profiles") || "[]");
|
return JSON.parse(localStorage.getItem("demo_profiles") || "[]");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue