diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-09 05:42:15 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-09 05:42:15 -0400 |
commit | 33841ef7ca23348dd03017768504e536cf567177 (patch) | |
tree | b8c529b870b57d16dd816bef8f0875315ccad124 | |
parent | 8f935493d8db08d4c1173f0dafb1fe7f2d414f54 (diff) |
cleanup
-rw-r--r-- | src/client/apis/AuthenticationManager.tsx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/client/apis/AuthenticationManager.tsx b/src/client/apis/AuthenticationManager.tsx index 360554b8e..d8f6b675b 100644 --- a/src/client/apis/AuthenticationManager.tsx +++ b/src/client/apis/AuthenticationManager.tsx @@ -4,9 +4,9 @@ import * as React from "react"; import MainViewModal from "../views/MainViewModal"; import { Opt } from "../../new_fields/Doc"; import { Identified } from "../Network"; -import { RouteStore } from "../../server/RouteStore"; const AuthenticationUrl = "https://accounts.google.com/o/oauth2/v2/auth"; +const prompt = "Please paste the external authetication code here..."; @observer export default class AuthenticationManager extends React.Component<{}> { @@ -16,18 +16,10 @@ export default class AuthenticationManager extends React.Component<{}> { @observable private authenticationCode: Opt<string> = undefined; @observable private clickedState = false; - private get isOpen() { - return this.openState; - } - private set isOpen(value: boolean) { runInAction(() => this.openState = value); } - private get hasBeenClicked() { - return this.clickedState; - } - private set hasBeenClicked(value: boolean) { runInAction(() => this.clickedState = value); } @@ -78,7 +70,7 @@ export default class AuthenticationManager extends React.Component<{}> { <button onClick={this.handleClick}>Please click here to authorize a Google account...</button> {this.clickedState ? <input onChange={this.handlePaste} - placeholder={"Please paste the external authetication code here..."} + placeholder={prompt} style={{ marginTop: 15 }} /> : (null)} </div> |