feat: Einlösen und Bearbeiten nebeneinander auf der Detailseite
This commit is contained in:
1 parent
3890238868
commit
0430b3929e
1 file changed
+10
-10
+10
-10
@@ -123,18 +123,18 @@ export default function VoucherDetailPage({ params }: { params: Promise<{ id: st
|
||||
Zum Shop
|
||||
</a>
|
||||
)}
|
||||
{v.status !== "eingeloest" && (
|
||||
<button
|
||||
onClick={redeem}
|
||||
className="mt-4 h-12 w-full rounded-field bg-brand-600 text-sm font-semibold text-white transition-colors hover:bg-brand-700 active:scale-[0.99] sm:w-auto sm:px-8"
|
||||
>
|
||||
Einlösen
|
||||
</button>
|
||||
)}
|
||||
<div className="mt-3 flex flex-wrap gap-2">
|
||||
<div className="mt-4 flex flex-col gap-2 sm:flex-row">
|
||||
{v.status !== "eingeloest" && (
|
||||
<button
|
||||
onClick={redeem}
|
||||
className="h-12 w-full rounded-field bg-brand-600 text-sm font-semibold text-white transition-colors hover:bg-brand-700 active:scale-[0.99] sm:flex-1"
|
||||
>
|
||||
Einlösen
|
||||
</button>
|
||||
)}
|
||||
<Link
|
||||
href={`/vouchers/${v.id}/edit`}
|
||||
className="inline-flex h-11 items-center rounded-field border border-line bg-white px-5 text-sm font-semibold transition-colors hover:border-brand-600 hover:text-brand-700"
|
||||
className="inline-flex h-12 items-center justify-center rounded-field border border-line bg-white px-5 text-sm font-semibold transition-colors hover:border-brand-600 hover:text-brand-700 sm:w-auto sm:px-8"
|
||||
>
|
||||
Bearbeiten
|
||||
</Link>
|
||||
|
||||
Reference in new issue
Block a user