Created
February 27, 2021 22:09
-
-
Save kino6052/6cb6cfb6a55ad7238ba0242029c32fb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const initialState: IState = { | |
input: "", | |
isInStockOnly: false, | |
products: [ | |
{ | |
id: "0", | |
category: "Sporting Goods", | |
price: "$49.99", | |
stocked: true, | |
name: "Football" | |
}, | |
{ | |
id: "1", | |
category: "Sporting Goods", | |
price: "$9.99", | |
stocked: true, | |
name: "Baseball" | |
}, | |
{ | |
id: "2", | |
category: "Sporting Goods", | |
price: "$29.99", | |
stocked: false, | |
name: "Basketball" | |
}, | |
{ | |
id: "3", | |
category: "Electronics", | |
price: "$99.99", | |
stocked: true, | |
name: "iPod Touch" | |
}, | |
{ | |
id: "4", | |
category: "Electronics", | |
price: "$399.99", | |
stocked: false, | |
name: "iPhone 5" | |
}, | |
{ | |
id: "5", | |
category: "Electronics", | |
price: "$199.99", | |
stocked: true, | |
name: "Nexus 7" | |
} | |
], | |
productsToDisplay: ["0", "1", "2", "3", "4", "5"] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment