Skip to content

Commit 0dbce3b

Browse files
authored
chore: update (#268)
1 parent c1c32f4 commit 0dbce3b

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

apps/web-storefront/app/components/PinsBlock.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ onMounted(() => {
9595
9696
const minimum = 9
9797
98+
function getImageByIndex(index: number) {
99+
if (index === 0) {
100+
return '/slider-test-0.jpg'
101+
}
102+
if (index === 1) {
103+
return '/slider-test-1.jpg'
104+
}
105+
106+
return ''
107+
}
108+
98109
const preparedPins = computed(() => {
99110
const filtered = pins.filter((pin) => pin.type !== 'empty')
100111
const emptyCount = Math.max(0, minimum - filtered.length)
@@ -106,7 +117,7 @@ const preparedPins = computed(() => {
106117
userId: null,
107118
user: null,
108119
text: null,
109-
mediaUrl: '/slider-test.jpg',
120+
mediaUrl: getImageByIndex(i),
110121
pageId: 'placeholder',
111122
}))
112123
return [...filtered, ...emptyPins]

apps/web-storefront/app/components/modal/CitySelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
size="sm"
4444
:label="c.name"
4545
class="px-0 py-0 text-md font-semibold cursor-pointer"
46-
:class="{ '!text-secondary': c.id === city?.id }"
46+
:class="{ 'text-secondary!': c.id === city?.id }"
4747
/>
4848
</div>
4949

File renamed without changes.
66.3 KB
Loading

0 commit comments

Comments
 (0)