Prettier format pending files
This commit is contained in:
parent
0bedd5a267
commit
81eedd39e9
1 changed files with 9 additions and 12 deletions
|
|
@ -17,14 +17,7 @@ import { Badge } from "@/components/ui/badge";
|
||||||
import { aethexCollabService } from "@/lib/aethex-collab-service";
|
import { aethexCollabService } from "@/lib/aethex-collab-service";
|
||||||
import LoadingScreen from "@/components/LoadingScreen";
|
import LoadingScreen from "@/components/LoadingScreen";
|
||||||
import { aethexToast } from "@/lib/aethex-toast";
|
import { aethexToast } from "@/lib/aethex-toast";
|
||||||
import {
|
import { Users, Plus, Zap, Target, Trophy, MessageSquare } from "lucide-react";
|
||||||
Users,
|
|
||||||
Plus,
|
|
||||||
Zap,
|
|
||||||
Target,
|
|
||||||
Trophy,
|
|
||||||
MessageSquare,
|
|
||||||
} from "lucide-react";
|
|
||||||
|
|
||||||
export default function Squads() {
|
export default function Squads() {
|
||||||
const { user, profile, loading } = useAuth();
|
const { user, profile, loading } = useAuth();
|
||||||
|
|
@ -133,7 +126,10 @@ export default function Squads() {
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<div className="text-2xl font-bold">
|
<div className="text-2xl font-bold">
|
||||||
{squads.reduce((acc, squad) => acc + (squad.members?.length || 1), 0)}
|
{squads.reduce(
|
||||||
|
(acc, squad) => acc + (squad.members?.length || 1),
|
||||||
|
0,
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
@ -207,7 +203,9 @@ export default function Squads() {
|
||||||
{/* Your Squads */}
|
{/* Your Squads */}
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-2xl font-bold text-foreground">Your Squads</h2>
|
<h2 className="text-2xl font-bold text-foreground">
|
||||||
|
Your Squads
|
||||||
|
</h2>
|
||||||
<p className="text-sm text-muted-foreground mt-1">
|
<p className="text-sm text-muted-foreground mt-1">
|
||||||
{squads.length === 0
|
{squads.length === 0
|
||||||
? "Create your first squad to get started"
|
? "Create your first squad to get started"
|
||||||
|
|
@ -243,8 +241,7 @@ export default function Squads() {
|
||||||
{squad.name}
|
{squad.name}
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
<CardDescription className="line-clamp-2">
|
<CardDescription className="line-clamp-2">
|
||||||
{squad.description ||
|
{squad.description || "No description provided yet"}
|
||||||
"No description provided yet"}
|
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</div>
|
</div>
|
||||||
<div className="p-2 rounded-lg bg-aethex-500/10 group-hover:bg-aethex-500/20 transition-colors">
|
<div className="p-2 rounded-lg bg-aethex-500/10 group-hover:bg-aethex-500/20 transition-colors">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue