diff --git a/src/components/CommunityComponents/CommunityList.vue b/src/components/CommunityComponents/CommunityList.vue index 0720c1bdb68956c3da93b969133035bdc5dd448f..7d2d789b09a5098dadfd90a695e23efbd01ec71d 100644 --- a/src/components/CommunityComponents/CommunityList.vue +++ b/src/components/CommunityComponents/CommunityList.vue @@ -1,7 +1,11 @@ <template> <ul> <li v-for="community in communities" :key="community"> - <CommunityListItem :community="community" :member="member" class="border-black" /> + <CommunityListItem + :community="community" + :member="member" + class="border-black" + /> </li> </ul> </template> diff --git a/src/components/CommunityComponents/CommunityListItem.vue b/src/components/CommunityComponents/CommunityListItem.vue index 06328e34d45a8d82ddf513c9aa651e9293bb0c16..637b8d95a10e15425e698d97c7f57ed7f71e2a54 100644 --- a/src/components/CommunityComponents/CommunityListItem.vue +++ b/src/components/CommunityComponents/CommunityListItem.vue @@ -49,10 +49,16 @@ @click="toggleDialog()" class="bg-white shadow dark:bg-gray-800 select-none cursor-pointer hover:bg-gray-50 flex items-center p-2" > - <div v-if="!community.picture" class="h-10 w-10 flex flex-col justify-center items-center ml-2 mr-2"> + <div + v-if="!community.picture" + class="h-10 w-10 flex flex-col justify-center items-center ml-2 mr-2" + > <UserGroupIcon alt="Felleskapets bilde" class="h-10 w-10" /> </div> - <div v-else class="h-3 w-14 flex flex-col justify-center items-center ml-2 mt-4 mb-4 mr-2"> + <div + v-else + class="h-3 w-14 flex flex-col justify-center items-center ml-2 mt-4 mb-4 mr-2" + > <img :src="community.picture" alt="Fellsekaps bilde" class="rounded-md" /> </div> <div class="flex-1 pl-1 overflow-hidden"> diff --git a/src/components/RentingComponents/ItemInfo.vue b/src/components/RentingComponents/ItemInfo.vue index dbfa9390393e6608c71fccbba1f0bc078d92c79c..18f8a558678bf4a038a8d05bcac2a39400a81326 100644 --- a/src/components/RentingComponents/ItemInfo.vue +++ b/src/components/RentingComponents/ItemInfo.vue @@ -10,7 +10,7 @@ noPicture, }" > - <ImageCarousel :images="pictures" ></ImageCarousel> + <ImageCarousel :images="pictures"></ImageCarousel> </div> </div> <!-- Product info --> diff --git a/tests/unit/component-tests/community-component-tests/__snapshots__/community-list-item.spec.js.snap b/tests/unit/component-tests/community-component-tests/__snapshots__/community-list-item.spec.js.snap index fec137aa5906bdbcae36ec79785f35930b11223e..5135f4b48c7b670b8c5b8173ad0d802a82b5ed0a 100644 --- a/tests/unit/component-tests/community-component-tests/__snapshots__/community-list-item.spec.js.snap +++ b/tests/unit/component-tests/community-component-tests/__snapshots__/community-list-item.spec.js.snap @@ -20,7 +20,6 @@ exports[`CommunityListItem component renders correctly 1`] = ` class="rounded-md" src="string" /> - <!-- TODO: USE COMMUNITY IMAGE <img alt="Felleskapets bilde" src="@/assets/group.png" /> --> </div> <div class="flex-1 pl-1 overflow-hidden"