diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-02 02:40:06 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-02 02:49:58 +0800 |
commit | 817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0 (patch) | |
tree | 2c699c6694c8d9535b7838b128b52becca9e2831 /packages/website/ts/components/forms | |
parent | 3a7f26f6200bd3796a5207f62c0bdd18858db0e1 (diff) | |
download | dexon-0x-contracts-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.tar.gz dexon-0x-contracts-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.tar.zst dexon-0x-contracts-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.zip |
Add styled-components and polished
Diffstat (limited to 'packages/website/ts/components/forms')
-rw-r--r-- | packages/website/ts/components/forms/subscribe_form.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/forms/subscribe_form.tsx b/packages/website/ts/components/forms/subscribe_form.tsx index 8bb0f4fc7..3a6d0901f 100644 --- a/packages/website/ts/components/forms/subscribe_form.tsx +++ b/packages/website/ts/components/forms/subscribe_form.tsx @@ -58,8 +58,8 @@ export class SubscribeForm extends React.Component<SubscribeFormProps, Subscribe } private async _handleSubscribeClickAsync(): Promise<void> { this._setStatus(SubscribeFormStatus.Loading); - const success = await backendClient.subscribeToNewsletterAsync(this.state.emailText); - const status = success ? SubscribeFormStatus.Success : SubscribeFormStatus.Error; + const isSuccess = await backendClient.subscribeToNewsletterAsync(this.state.emailText); + const status = isSuccess ? SubscribeFormStatus.Success : SubscribeFormStatus.Error; this._setStatus(status); } private _setStatus(status: SubscribeFormStatus): void { |