diff --git a/package.json b/package.json index 2f4919b..bda0a9a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "dev:parcel": "node scripts/dev-parcel.js", "deploy": "rsync -chavzP -e \"ssh -p 2222\" --stats dist/ root@209.58.165.19:/home/apps/giift/giift-customer-btn", "deploy:giift": "rsync -chavzP -e \"ssh -p 2222\" --stats dist/ root@209.58.165.19:/home/apps/giift/giift-customer", - "dev2:parcel": "node scripts/link-assets.js; parcel public/index.parcel.html --out-file index.html --global $" + "dev2:parcel": "node scripts/link-assets.js; parcel public/index.parcel.html --out-file index.html --global $", + "build:deploy": "npm run build:parcel:prod && npm run deploy" }, "author": "Asacreative", "repository": { diff --git a/src/common/pages/RegisterNew/index.js b/src/common/pages/RegisterNew/index.js index 83874e2..88e3aaf 100644 --- a/src/common/pages/RegisterNew/index.js +++ b/src/common/pages/RegisterNew/index.js @@ -22,6 +22,7 @@ import { Upload, Icon, message } from 'antd'; import AutoComplete from './../../components/AutoComplete'; import {appConfig} from "../../config/app"; +import {LINKS} from "../../routes"; // const province = require("./../../../../assets/data/province.json"); // const city = require("./../../../../assets/data/city.json"); @@ -156,10 +157,11 @@ class RegisterPage extends React.Component { additional_data: {} }; this.authStore.register(data).then(res => { + message.success("Please check your email to confirm your account"); setTimeout(() => { this.setState({ isLoading: false }); - message.success("Please check your email to confirm your account"); - }, 1000); + this.props.history.push(LINKS.LOGIN); + }, 250); }).catch(err => { this.setState({ isLoading: false });