From afea50d3969a3eadb82eb87035a70debb673fee4 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 28 Sep 2025 22:13:22 +0000 Subject: [PATCH] Prettier format pending files --- client/pages/Admin.tsx | 54 +++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/client/pages/Admin.tsx b/client/pages/Admin.tsx index 13ec02c8..394fdcfb 100644 --- a/client/pages/Admin.tsx +++ b/client/pages/Admin.tsx @@ -27,11 +27,31 @@ export default function Admin() { const navigate = useNavigate(); const isOwner = Array.isArray(roles) && roles.includes("owner"); const [demoProfiles, setDemoProfiles] = useState([]); - type Studio = { name: string; tagline?: string; metrics?: string; specialties?: string[] }; + type Studio = { + name: string; + tagline?: string; + metrics?: string; + specialties?: string[]; + }; const [studios, setStudios] = useState([ - { name: "Lone Star Studio", tagline: "Indie craftsmanship with AAA polish", metrics: "Top-rated indie hits", specialties: ["Unity", "Unreal", "Pixel Art"] }, - { name: "AeThex | GameForge", tagline: "High-performance cross-platform experiences", metrics: "Billions of player sessions", specialties: ["Roblox", "Backend", "LiveOps"] }, - { name: "Gaming Control", tagline: "Strategy, simulation, and systems-first design", metrics: "Award-winning franchises", specialties: ["Simulation", "AI/ML", "Economy"] }, + { + name: "Lone Star Studio", + tagline: "Indie craftsmanship with AAA polish", + metrics: "Top-rated indie hits", + specialties: ["Unity", "Unreal", "Pixel Art"], + }, + { + name: "AeThex | GameForge", + tagline: "High-performance cross-platform experiences", + metrics: "Billions of player sessions", + specialties: ["Roblox", "Backend", "LiveOps"], + }, + { + name: "Gaming Control", + tagline: "Strategy, simulation, and systems-first design", + metrics: "Award-winning franchises", + specialties: ["Simulation", "AI/ML", "Economy"], + }, ]); useEffect(() => { @@ -177,11 +197,16 @@ export default function Admin() { Featured Studios - Manage studios shown on Game Development page + + Manage studios shown on Game Development page + {studios.map((s, i) => ( -
+
{ const next = studios.slice(); - next[i] = { ...next[i], specialties: e.target.value.split(",").map(v => v.trim()).filter(Boolean) }; + next[i] = { + ...next[i], + specialties: e.target.value + .split(",") + .map((v) => v.trim()) + .filter(Boolean), + }; setStudios(next); }} placeholder="Specialties (comma separated)" @@ -244,7 +275,9 @@ export default function Admin() { @@ -252,7 +285,10 @@ export default function Admin() { size="sm" onClick={() => { try { - localStorage.setItem("featured_studios", JSON.stringify(studios)); + localStorage.setItem( + "featured_studios", + JSON.stringify(studios), + ); } catch {} }} >