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> {
|
||||
get sendComOpen(): () => any {
|
||||
return this._sendComOpen;
|
||||
}
|
||||
|
||||
set sendComOpen(value: () => any) {
|
||||
this._sendComOpen = value;
|
||||
}
|
||||
constructor(props: Props, context: State) {
|
||||
super(props, context);
|
||||
|
||||
|
@ -79,7 +86,7 @@ export class SignIn extends React.Component<Props, State> {
|
|||
</Grid>
|
||||
</Modal.Content>
|
||||
<Modal.Actions>
|
||||
<Button primary onClick={this.sendComOpen}> Submit </Button>
|
||||
<Button primary onClick={this._sendComOpen}> Submit </Button>
|
||||
<Button onClick={this.PopupClose}> Cancel </Button>
|
||||
</Modal.Actions>
|
||||
</Modal>
|
||||
|
@ -108,7 +115,7 @@ export class SignIn extends React.Component<Props, State> {
|
|||
|
||||
private forgotPopupOpen = () => this.setState({ forgotPopup: true });
|
||||
private PopupClose = () => this.setState({ forgotPopup: false, sendComPopup: false });
|
||||
private sendComOpen = () => {
|
||||
private _sendComOpen = () => {
|
||||
this.setState({
|
||||
forgotPopup: false,
|
||||
sendComPopup: true,
|
||||
|
@ -129,14 +136,24 @@ export class SignIn extends React.Component<Props, State> {
|
|||
headers: {
|
||||
// 'Content-Type': 'text/plain; charset=utf-8',
|
||||
'Accept': 'application/json',
|
||||
// 'Content-Type': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user