From 9754b67c91bf8b7d451a3d330dee3bee94fb20d3 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 19 Jan 2020 14:42:11 +0100 Subject: [PATCH] added translations, centered loading --- ui/src/components/user.tsx | 81 +++++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index c95b18bb1..5cd77e9b1 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -196,11 +196,11 @@ export class User extends Component { return (
{this.state.loading ? ( -
+

-

+

) : (
@@ -243,19 +243,19 @@ export class User extends Component { class="custom-select custom-select-sm w-auto" > @@ -362,7 +362,7 @@ export class User extends Component {
  • {user.name}
  • {user.banned && (
  • - # + { i18n.t('banned') }
  • )} @@ -415,7 +415,7 @@ export class User extends Component { class="btn btn-block btn-secondary mt-3" onClick={linkEvent(this, this.handleLogoutClick)} > - # + { i18n.t('logout') } )}
    @@ -430,12 +430,12 @@ export class User extends Component {
    - # + { i18n.t('settings') }
    { class="ml-2 custom-select custom-select-sm w-auto" > {themes.map(theme => ( @@ -527,12 +527,13 @@ export class User extends Component { />
    -
    -
    -
    -
    @@ -630,6 +636,7 @@ export class User extends Component {
    { this.handleUserSettingsSendNotificationsToEmailChange )} /> -
    @@ -665,12 +672,12 @@ export class User extends Component { this.handleDeleteAccountShowConfirmToggle )} > - # + { i18n.t('delete_account') } {this.state.deleteAccountShowConfirm && ( <> { this.handleDeleteAccountShowConfirmToggle )} > - # + { i18n.t('cancel') } )} @@ -720,7 +727,7 @@ export class User extends Component {
    - # + { i18n.t('moderates') }
      {this.state.moderates.map(community => ( @@ -745,7 +752,7 @@ export class User extends Component {
      - # + { i18n.t('subscribed') }
        {this.state.follows.map(community => ( @@ -778,7 +785,7 @@ export class User extends Component { class="btn btn-sm btn-secondary" onClick={linkEvent(this, this.nextPage)} > - # + { i18n.t('next') }
      );