Cleaned code
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
<ion-list>
|
||||
@if (groups().length) {
|
||||
@for (group of groups(); track group.id; let i = $index) {
|
||||
@if (i == groups().length) {
|
||||
@if (i == groups().length - 1) {
|
||||
<ion-item lines="none" class="transition-all duration-200 active:[--background:#DBD8D7]">
|
||||
<p class="text-sm text-red-800">{{ group.label }}</p>
|
||||
<p class="text-sm text-gray-600">{{ group.label }}</p>
|
||||
<ion-icon slot="end" class="text-xl text-gray-400" name="chevron"></ion-icon>
|
||||
</ion-item>
|
||||
} @else {
|
||||
<ion-item lines="full" class="transition-all duration-200 active:[--background:#DBD8D7]">
|
||||
<p class="text-sm text-red-800">{{ group.label }}</p>
|
||||
<p class="text-sm text-gray-600">{{ group.label }}</p>
|
||||
<ion-icon slot="end" class="text-xl text-gray-400" name="chevron"></ion-icon>
|
||||
</ion-item>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user