Forgotpassword file delete
This commit is contained in:
parent
f0a5c2179f
commit
c74fccbe7a
|
@ -39,6 +39,13 @@ export interface State {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SignIn extends React.Component<Props, State> {
|
export class SignIn extends React.Component<Props, State> {
|
||||||
|
get sendComOpen(): () => any {
|
||||||
|
return this._sendComOpen;
|
||||||
|
}
|
||||||
|
|
||||||
|
set sendComOpen(value: () => any) {
|
||||||
|
this._sendComOpen = value;
|
||||||
|
}
|
||||||
constructor(props: Props, context: State) {
|
constructor(props: Props, context: State) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
|
||||||
|
@ -79,7 +86,7 @@ export class SignIn extends React.Component<Props, State> {
|
||||||
</Grid>
|
</Grid>
|
||||||
</Modal.Content>
|
</Modal.Content>
|
||||||
<Modal.Actions>
|
<Modal.Actions>
|
||||||
<Button primary onClick={this.sendComOpen}> Submit </Button>
|
<Button primary onClick={this._sendComOpen}> Submit </Button>
|
||||||
<Button onClick={this.PopupClose}> Cancel </Button>
|
<Button onClick={this.PopupClose}> Cancel </Button>
|
||||||
</Modal.Actions>
|
</Modal.Actions>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
@ -108,7 +115,7 @@ export class SignIn extends React.Component<Props, State> {
|
||||||
|
|
||||||
private forgotPopupOpen = () => this.setState({ forgotPopup: true });
|
private forgotPopupOpen = () => this.setState({ forgotPopup: true });
|
||||||
private PopupClose = () => this.setState({ forgotPopup: false, sendComPopup: false });
|
private PopupClose = () => this.setState({ forgotPopup: false, sendComPopup: false });
|
||||||
private sendComOpen = () => {
|
private _sendComOpen = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
forgotPopup: false,
|
forgotPopup: false,
|
||||||
sendComPopup: true,
|
sendComPopup: true,
|
||||||
|
@ -129,14 +136,24 @@ export class SignIn extends React.Component<Props, State> {
|
||||||
headers: {
|
headers: {
|
||||||
// 'Content-Type': 'text/plain; charset=utf-8',
|
// 'Content-Type': 'text/plain; charset=utf-8',
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
// 'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
signinId: 'geek@loafle.com',
|
signinId: 'geek@loafle.com',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
}).then((respnse:any) => {
|
||||||
|
console.log(respnse);
|
||||||
|
return respnse.json();
|
||||||
|
}).then((resData:any) => {
|
||||||
|
console.log('resdata' + resData);
|
||||||
|
return resData;
|
||||||
|
}).catch(err => {
|
||||||
|
console.log('eee' + err);
|
||||||
});
|
});
|
||||||
let re: any = await d.json();
|
// let re: any = await d.json();
|
||||||
|
|
||||||
|
// console.log(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
private signInClick(event: React.SyntheticEvent<HTMLButtonElement>, data: ButtonProps):void {
|
private signInClick(event: React.SyntheticEvent<HTMLButtonElement>, data: ButtonProps):void {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user