small improvements
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
} from 'astro:env/server'
|
||||
|
||||
type HTML = string
|
||||
const currencyFormatter = Intl.NumberFormat('ru', { currency: 'rub' })
|
||||
|
||||
export type YclientsBookinRawResponse = {
|
||||
category: {
|
||||
@@ -69,7 +70,7 @@ export const yclientsClient = {
|
||||
res.data.loyalty_abonement_types.map((rawItem) => ({
|
||||
title: rawItem.online_sale_title,
|
||||
description: rawItem.online_sale_description,
|
||||
price: `${rawItem.online_sale_price} ₽`,
|
||||
price: `${currencyFormatter.format(rawItem.online_sale_price)} ₽`,
|
||||
link: {
|
||||
title: 'Купить абонемент',
|
||||
href: `https://o9998.yclients.com/subscriptions/${rawItem.id}`,
|
||||
@@ -91,7 +92,7 @@ export const yclientsClient = {
|
||||
.filter((service) => service.category_id === 18760529)
|
||||
.map((service) => ({
|
||||
title: service.title,
|
||||
price: `${service.price_min} ₽`,
|
||||
price: `${currencyFormatter.format(service.price_min)} ₽`,
|
||||
description: service.comment,
|
||||
link: {
|
||||
title: 'Записаться',
|
||||
|
||||
Reference in New Issue
Block a user