mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: render newlines in tariff description
Add whitespace-pre-line to tariff description div so newline characters entered via admin panel are rendered as line breaks.
This commit is contained in:
@@ -2361,7 +2361,9 @@ export default function Subscription() {
|
||||
<div>
|
||||
<div className="text-lg font-semibold text-dark-100">{tariff.name}</div>
|
||||
{tariff.description && (
|
||||
<div className="mt-1 text-sm text-dark-400">{tariff.description}</div>
|
||||
<div className="mt-1 whitespace-pre-line text-sm text-dark-400">
|
||||
{tariff.description}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{isCurrentTariff && (
|
||||
|
||||
Reference in New Issue
Block a user