Skip to content
Snippets Groups Projects
Commit 494cfd20 authored by Zara Mudassar's avatar Zara Mudassar
Browse files

Error fixed

parent 269a0c5f
No related branches found
No related tags found
1 merge request!45Group home view
Pipeline #177419 passed
...@@ -7,21 +7,21 @@ ...@@ -7,21 +7,21 @@
<span class="absolute inset-y-0 left-0 flex items-center pl-3"> <span class="absolute inset-y-0 left-0 flex items-center pl-3">
<svg class="w-5 h-5 text-gray-400" viewBox="0 0 24 24" fill="none"> <svg class="w-5 h-5 text-gray-400" viewBox="0 0 24 24" fill="none">
<path <path
d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z"
stroke="currentColor" stroke="currentColor"
stroke-width="2" stroke-width="2"
stroke-linecap="round" stroke-linecap="round"
stroke-linejoin="round" stroke-linejoin="round"
></path> ></path>
</svg> </svg>
</span> </span>
<input <input
type="text" type="text"
id="searchInput" id="searchInput"
class="w-full py-3 pl-10 pr-4 text-gray-700 bg-white border rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring" class="w-full py-3 pl-10 pr-4 text-gray-700 bg-white border rounded-md dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring"
placeholder="Search" placeholder="Search"
v-model="search" v-model="search"
/> />
</div> </div>
...@@ -35,12 +35,10 @@ ...@@ -35,12 +35,10 @@
<script> <script>
import ItemCard from "@/components/ItemCard"; import ItemCard from "@/components/ItemCard";
import LargeProfileCard from "@/components/UserProfileComponents/LargeProfileCard";
export default { export default {
name: "SearchItemListComponent", name: "SearchItemListComponent",
components: { components: {
LargeProfileCard,
ItemCard, ItemCard,
}, },
...@@ -49,10 +47,10 @@ export default { ...@@ -49,10 +47,10 @@ export default {
let filteredItems = []; let filteredItems = [];
filteredItems = this.items.filter( filteredItems = this.items.filter(
(p) => (p) =>
p.title.toLowerCase().includes(this.search.toLowerCase()) || p.title.toLowerCase().includes(this.search.toLowerCase()) ||
p.adresse.toLowerCase().includes(this.search.toLowerCase()) || p.adresse.toLowerCase().includes(this.search.toLowerCase()) ||
p.price === Number(this.search) p.price === Number(this.search)
); );
return filteredItems; return filteredItems;
...@@ -85,7 +83,3 @@ export default { ...@@ -85,7 +83,3 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment