Commit fc2ae2dc authored by Kevin Kaminski's avatar Kevin Kaminski

[AFP-26] 🚧 working on setting up Product typing correctly

parent 69e7792b
import React from 'react';
import { OrderService } from 'services';
import { Product } from 'Order';
const OrderShowDetails = (props: any) => {
const orderProductDetails = props.products.map((prod: any, idx: any) => {
......
import orderData from './mock-order-data'
import { Order } from 'Order';
// type Order {
// sku: number
// }
export const allOrders = () => new Promise<Order[]>((res, rej) => {
setTimeout(() => { res(orderData) }, 2000)
......@@ -12,10 +9,6 @@ export const orderById = (id: number) => new Promise<Order>((res, rej) => {
setTimeout(() => { res(orderData[id]) }, 2000)
})
// export const orderById = (idx: any) => {
// return orderData[idx];
// }
export default {
allOrders,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment