This commit is contained in:
gpt-engineer-app[bot]
2025-12-19 15:45:40 +00:00
parent 5a55257ef2
commit 09558c0359
2 changed files with 28 additions and 23 deletions

View File

@@ -131,7 +131,10 @@ export default function MemberAccess() {
</div> </div>
</CardHeader> </CardHeader>
<CardContent> <CardContent>
<p className="text-muted-foreground mb-4 line-clamp-2">{item.product.description}</p> <div
className="text-muted-foreground mb-4 line-clamp-2 prose prose-sm max-w-none"
dangerouslySetInnerHTML={{ __html: item.product.description || '' }}
/>
{renderAccessActions(item)} {renderAccessActions(item)}
</CardContent> </CardContent>
</Card> </Card>

View File

@@ -1,5 +1,5 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { useNavigate, Link } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { AppLayout } from "@/components/AppLayout"; import { AppLayout } from "@/components/AppLayout";
import { useAuth } from "@/hooks/useAuth"; import { useAuth } from "@/hooks/useAuth";
import { supabase } from "@/integrations/supabase/client"; import { supabase } from "@/integrations/supabase/client";
@@ -97,8 +97,11 @@ export default function MemberOrders() {
) : ( ) : (
<div className="space-y-4"> <div className="space-y-4">
{orders.map((order) => ( {orders.map((order) => (
<Link key={order.id} to={`/orders/${order.id}`}> <Card
<Card className="border-2 border-border hover:border-primary transition-colors cursor-pointer"> key={order.id}
className="border-2 border-border hover:border-primary transition-colors cursor-pointer"
onClick={() => navigate(`/orders/${order.id}`)}
>
<CardContent className="py-4"> <CardContent className="py-4">
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<div> <div>
@@ -118,7 +121,6 @@ export default function MemberOrders() {
</div> </div>
</CardContent> </CardContent>
</Card> </Card>
</Link>
))} ))}
</div> </div>
)} )}