fix: set correct icons parameters in map and funding links views

fixes #500
This commit is contained in:
Yassine Doghri 2024-07-01 15:37:46 +00:00
parent a23ca6c4c7
commit b129813ea5
2 changed files with 7 additions and 4 deletions

View File

@ -45,7 +45,9 @@
<a href="<?= route_to('home') ?>"
class="inline-flex items-center mb-2 text-sm focus:ring-accent"><?= icon(
'arrow-left-line',
'mr-2',
[
'class' => 'mr-2',
],
) . lang('Page.back_to_home') ?></a>
<Heading tagName="h1" size="large"><?= lang('Page.map.title') ?></Heading>
</div>

View File

@ -26,9 +26,10 @@
rel="noopener noreferrer"
class="inline-flex items-center w-full font-semibold text-accent-base hover:text-accent-hover focus:ring-accent">
<?= icon(
esc($fundingPlatform->slug),
'mr-2 flex-shrink-0',
$fundingPlatform->type
$fundingPlatform->type . ':' . $fundingPlatform->slug,
[
'class' => 'mr-2 flex-shrink-0',
],
) . '<span class="truncate">' . esc($fundingPlatform->link_url) . '</span>' ?>
</a>
<?php endif; ?>