import React from 'react' import router from 'next/router' import ActionBar from '~/components/admin/actionBar' import {FormController, Input, TextArea, DecimalInput, Button, Checkbox} from '~/components/form' export default function NewItem() { const stringLengthAtLeastOne = str => str.length > 0 const slugRestrictions = str => { if(str.length < 3) return false; if(str.length > 20) return false; if(!str.match(/^[-a-z0-9_]*$/i)) return false; return true; } const afterCreate = (item) => { router.push(`/admin/items/${item.urlslug}`) } return ( <> General Fields Math.floor(float * 100)} /> Customs Info s.length === 2} hint="2 letter ISO country code"/> val > 0} /> Note: You can add images to an item after creating it Create > ) }
Note: You can add images to an item after creating it