You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
321 B
JavaScript

CheckoutSummary.getInitialProps = async function({ctx: {axios}}){
const {data: order} = await axios.get(`/api/orders/current`)
return {order}
}
export default function CheckoutSummary({order}){
return (
<>
<h2>Checkout</h2>
<pre>
{JSON.stringify(order, null, 2)}
</pre>
</>
)
}