codewithzosh / ecommerce-products-data

31 stars 26 forks source link

code for filterdata.js #8

Open swali-98 opened 11 months ago

swali-98 commented 11 months ago

can anyone help me with ths=e source code for filterdata.js file

tonnymuchui commented 10 months ago

export const color = [ "white", "Black", "Red", "marun", "Being", "Pink", "Green", "yellow", ] export const filters = [ { id: "color", name: "Color", options: [ {value: "white", label: "White"}, {value: "beige", label: "Beige"}, {value: "blue", label: "Blue"}, {value: "brown", label: "Brown"}, {value: "green", label: "Green"}, {value: "purple", label: "Purple"}, {value: "yellow", label: "Yellow"}, ], }, { id: "size", name: "Size", options: [ {value: "S", label: "S"}, {value: "M", label: "M"}, {value: "L", label: "L"}, ], }, ]; export const singleFilter = [ { id: "price", name: "Price", options: [ {value: "159-399", label: "ksh159 To 399"}, {value: "399-999", label: "ksh399 To 999"}, {value: "999-1999", label: "ksh999 To 1999"}, {value: "1999-2999", label: "ksh1999 To 2999"}, {value: "2999-3999", label: "ksh159 To 399"}, {value: "3999-4999", label: "ksh3999 To 4999"}, ], }, { id: "discount", name: "Discount Range", options: [ {value: "10", label: "10% and above"}, {value: "20", label: "20% and above"}, {value: "30", label: "30% and above"}, {value: "40", label: "40% and above"}, {value: "50", label: "50% and above"}, {value: "60", label: "60% and above"}, {value: "70", label: "70% and above"}, {value: "80", label: "80% and above"}, ], }, { id: "stock", name: "availability", options: [ {value: "in_stock", label: "In_stock"}, {value: "out_of_stock", label: "Out_of_stock"}, ], }, ];

manojkumarlucky commented 5 months ago

tanx you yar