Создание заказов
This commit is contained in:
@@ -9,6 +9,7 @@ import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { PlusCircle, Loader2, Pencil, Trash2, PauseCircle, PlayCircle, Image as ImageIcon } from "lucide-react";
|
||||
import { useSessionStore } from "@/entities/session/store";
|
||||
import { formatPrice } from "@/shared/lib/formatPrice";
|
||||
|
||||
export default function MyOffersPage() {
|
||||
const router = useRouter();
|
||||
@@ -133,11 +134,15 @@ export default function MyOffersPage() {
|
||||
<p className="text-sm text-foreground/80 line-clamp-3 mb-4 leading-relaxed">
|
||||
{offer.description}
|
||||
</p>
|
||||
<div className="font-semibold text-lg flex items-center gap-1">
|
||||
{offer.price.amount} ₽
|
||||
<span className="text-sm font-normal text-muted-foreground relative top-0.5">
|
||||
{offer.price.type === 0 ? "фиксированно" : offer.price.type === 1 ? "в час" : "договорная"}
|
||||
</span>
|
||||
<div className="font-semibold text-lg flex items-center gap-1.5">
|
||||
{offer.price.type === 2
|
||||
? <span className="text-muted-foreground text-base">Договорная</span>
|
||||
: <>
|
||||
<span>{formatPrice(offer.price.amount)}</span>
|
||||
<span className="text-sm font-normal text-muted-foreground relative top-0.5">
|
||||
{offer.price.type === 1 ? "в час" : "фиксированно"}
|
||||
</span>
|
||||
</>}
|
||||
</div>
|
||||
</CardContent>
|
||||
<CardFooter className="flex gap-2 justify-end bg-muted/20 pt-4 mt-auto border-t">
|
||||
|
||||
Reference in New Issue
Block a user