import React from "react" import * as antd from "antd" import { StepsForm } from "components" import "./index.less" const steps = [ { key: "username", title: "Step 1", icon: "User", description: "Enter the username for the account", required: true, content: (props) => { return
{ props.handleUpdate(e.target.value) }} />
}, }, { key: "password", title: "Step 2", icon: "Key", description: "Enter a password for the account", required: true, content: (props) => { return
{ props.handleUpdate(e.target.value) }} />
}, }, { key: "email", title: "Step 3", icon: "Mail", description: "Enter a email for the account", required: true, content: (props) => { return
{ props.handleUpdate(e.target.value) }} />
}, }, ] export default (props) => { const api = window.app.request const onSubmit = async (values) => { const result = await api.post.register(values).catch((err) => { console.log(err) return false }) if (result) { props.close() } } return }