diff --git a/src/Components/AuthInput.tsx b/src/Components/AuthInput.tsx index 74877a0..8f79dea 100644 --- a/src/Components/AuthInput.tsx +++ b/src/Components/AuthInput.tsx @@ -11,7 +11,8 @@ export class AuthInput extends React.Component<{ dbId: string, isAuthButtonEnable: boolean, isAuthFailed: boolean, - isOpen: boolean + isOpen: boolean, + isLoading: boolean, }> { constructor(props: any) { @@ -22,6 +23,7 @@ export class AuthInput extends React.Component<{ isAuthButtonEnable: this.checkIsAuthButtonEnable(this.props.token, this.props.dbId), isAuthFailed: false, isOpen: true, + isLoading: false, }; } render() { @@ -38,52 +40,59 @@ export class AuthInput extends React.Component<{ title={'Authentication Required'} icon={'info-sign'} > -
- To use this application, authentication on Notion is required first. +
); } @@ -104,7 +113,10 @@ export class AuthInput extends React.Component<{ return token !== '' && dbId !== ''; } - private handleClickAuthButton = () => { + private handleClickAuthButton = (event: React.MouseEvent