Unify inner page back headers
This commit is contained in:
@@ -39,8 +39,6 @@ function formatDateTime(value: string) {
|
||||
|
||||
<template>
|
||||
<section class="space-y-6">
|
||||
<NuxtLink to="/admin/bonuses/balances" class="text-sm font-semibold text-[#0d854a]">← Назад к бонусам</NuxtLink>
|
||||
|
||||
<div v-if="bonusAccountQuery.loading.value" class="manager-empty-state">
|
||||
Загружаем бонусный счёт...
|
||||
</div>
|
||||
@@ -51,18 +49,19 @@ function formatDateTime(value: string) {
|
||||
|
||||
<template v-else>
|
||||
<div class="space-y-4">
|
||||
<div class="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
|
||||
<div class="space-y-1">
|
||||
<h1 class="text-3xl font-extrabold text-[#123824]">{{ bonusAccount.fullName }}</h1>
|
||||
<p v-if="bonusAccount.companyName || bonusAccount.email" class="text-sm text-[#5c7b69]">
|
||||
{{ bonusAccount.companyName || bonusAccount.email }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-left sm:text-right">
|
||||
<p class="text-[11px] font-semibold uppercase tracking-[0.18em] text-[#6a8a76]">Доступный бонус</p>
|
||||
<p class="mt-2 text-3xl font-black leading-none text-[#123824]">{{ formatAmount(bonusAccount.balance) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<UiBackHeader
|
||||
to="/admin/bonuses/balances"
|
||||
back-label="Назад к бонусам"
|
||||
:title="`Бонусный счёт ${bonusAccount.fullName}`"
|
||||
:subtitle="bonusAccount.companyName || bonusAccount.email || undefined"
|
||||
>
|
||||
<template #actions>
|
||||
<div class="text-left md:text-right">
|
||||
<p class="text-[11px] font-semibold uppercase tracking-[0.18em] text-[#6a8a76]">Доступный бонус</p>
|
||||
<p class="mt-2 text-3xl font-black leading-none text-[#123824]">{{ formatAmount(bonusAccount.balance) }}</p>
|
||||
</div>
|
||||
</template>
|
||||
</UiBackHeader>
|
||||
|
||||
<div v-if="pendingWithdrawals.length" class="surface-card rounded-[32px] p-6">
|
||||
<p class="text-lg font-bold text-[#123824]">Выводы</p>
|
||||
|
||||
Reference in New Issue
Block a user