@@ -56,9 +59,12 @@ const { colorObject } = useImageColor(`#category-image-${id.value}`);
size="24"
name="ci:arrow-left"
class="mb-1"
- :class="(colorObject?.isLight && !darkLayer) ? '**:stroke-black' : '**:stroke-white'"
+ :class="
+ colorObject?.isLight && !darkLayer
+ ? '**:stroke-black'
+ : '**:stroke-white'
+ "
/>
-
-
\ No newline at end of file
+
diff --git a/frontend/components/global/products/FilterProducts.vue b/frontend/components/global/products/FilterProducts.vue
index f59a8bf..fb97c60 100644
--- a/frontend/components/global/products/FilterProducts.vue
+++ b/frontend/components/global/products/FilterProducts.vue
@@ -7,7 +7,11 @@ import { PRODUCT_RANGE } from "~/constants";
const params = useUrlSearchParams("history");
-const sort_filter = ref(["جدیدترین ها", "گران ترین ها", "ارزان ترین ها"]);
+const sort_filter = ref([
+ { title: "جدیدترین ها", value: "newest" },
+ { title: "گران ترین ها", value: "price" },
+ { title: "ارزان ترین ها", value: "-price" },
+]);
const options = [
{
@@ -63,15 +67,15 @@ const resetFilters = () => {