import React from 'react' import ActionBar from '~/components/admin/actionBar' import {FormController, Input, Button} from '~/components/form' import Router from 'next/router' OrderAddress.getInitialProps = async ({ctx}) => { const {data: order} = await ctx.axios.get(`/api/orders/${ctx.query.uuid}`) return {order} } export default function OrderAddress({order}) { function afterSave(order) { Router.push(`/admin/orders/new/${order.uuid}/payment`) } const {address} = order; return ( <> value.length > 0}/> value.length > 0}/> value.length > 0}/> value.length > 0}/> value.length > 0}/> value.length > 0}/> ) }