gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] branch master updated: fix linter


From: gnunet
Subject: [taler-merchant-backoffice] branch master updated: fix linter
Date: Wed, 03 Mar 2021 18:56:06 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant-backoffice.

The following commit(s) were added to refs/heads/master by this push:
     new b1509bc  fix linter
b1509bc is described below

commit b1509bca33b2e577f1f2dd62f7f9f829d9609473
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Mar 3 14:55:58 2021 -0300

    fix linter
---
 CHANGELOG.md                                         |  6 ++++--
 packages/frontend/src/AdminRoutes.tsx                | 15 +++++++++++++++
 packages/frontend/src/components/form/InputArray.tsx |  4 ++--
 packages/frontend/src/components/menu/index.tsx      |  4 ++--
 packages/frontend/src/index.tsx                      |  2 +-
 5 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index c674aa4..228bfbc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -36,8 +36,10 @@ and this project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0
  - fix: row clicking on card table was overriding checkbox onClick
  - remove headers of the page
  - clear all tokens now remove backend-url
- - (WIP) remove checkbox from auth token, use button (manage auth)
- - (WIP) auth token config as popup with 3 actions (clear (sure?), cancel, set 
token)
+ - remove checkbox from auth token, use button (manage auth)
+ - auth token config as popup with 3 actions (clear (sure?), cancel, set token)
+ - new password enpoint
+ 
 
 ## [0.0.2] - 2021-02-25
  - REFACTOR: remove react-i18n and implement messageformat
diff --git a/packages/frontend/src/AdminRoutes.tsx 
b/packages/frontend/src/AdminRoutes.tsx
index cf70d3f..54fbc43 100644
--- a/packages/frontend/src/AdminRoutes.tsx
+++ b/packages/frontend/src/AdminRoutes.tsx
@@ -1,3 +1,18 @@
+/*
+ This file is part of GNU Taler
+ (C) 2021 Taler Systems S.A.
+
+ GNU Taler is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
+ */
 import { h, VNode } from "preact";
 import Router, { route, Route } from "preact-router";
 import { RootPaths, Redirect } from "./index";
diff --git a/packages/frontend/src/components/form/InputArray.tsx 
b/packages/frontend/src/components/form/InputArray.tsx
index da9b48d..47f6bea 100644
--- a/packages/frontend/src/components/form/InputArray.tsx
+++ b/packages/frontend/src/components/form/InputArray.tsx
@@ -75,9 +75,9 @@ export function InputArray<T>({ name, readonly, addonBefore, 
isValid, fromStr =
               if (!isValid(v)) {
                 setLocalError({ message: i18n`The value ${v} is invalid for a 
payment url` })
                 return;
-              } else {
+              } 
                 setLocalError(null)
-              }
+              
               onChange([v, ...array] as any);
               setCurrentValue('');
             }}>add</button>
diff --git a/packages/frontend/src/components/menu/index.tsx 
b/packages/frontend/src/components/menu/index.tsx
index 6353854..2de99f1 100644
--- a/packages/frontend/src/components/menu/index.tsx
+++ b/packages/frontend/src/components/menu/index.tsx
@@ -26,9 +26,9 @@ interface Props {
 
 export function Menu({ onLogout, instance }: Props): VNode {
   const [mobileOpen, setMobileOpen] = useState(false)
-  const title = !onLogout ? "Welcome!" : ( !instance ? "Admin" : instance)
+  const title = !onLogout ? "Welcome!" : (!instance ? "Admin" : instance)
   return <div class={mobileOpen ? "has-aside-mobile-expanded" : ""} 
onClick={() => setMobileOpen(false)}>
-    <NavigationBar onMobileMenu={() => setMobileOpen(!mobileOpen)} 
title={title}/>
+    <NavigationBar onMobileMenu={() => setMobileOpen(!mobileOpen)} 
title={title} />
     {onLogout && <Sidebar onLogout={onLogout} instance={instance} 
mobile={mobileOpen} />}
   </div>
 
diff --git a/packages/frontend/src/index.tsx b/packages/frontend/src/index.tsx
index 3a047b5..f2f50b3 100644
--- a/packages/frontend/src/index.tsx
+++ b/packages/frontend/src/index.tsx
@@ -125,7 +125,7 @@ function ApplicationStatusRoutes(): VNode {
   return <div id="app" class="has-navbar-fixed-top">
     <ConfigContextProvider value={ctx}>
       <Notifications notifications={notifications} 
removeNotification={removeNotification} />
-      <Route default component={ApplicationReadyRoutes} 
pushNotification={pushNotification} addTokenCleaner={addTokenCleanerMemo} 
clearAllTokens={clearAllTokens}/> :
+      <Route default component={ApplicationReadyRoutes} 
pushNotification={pushNotification} addTokenCleaner={addTokenCleanerMemo} 
clearAllTokens={clearAllTokens} /> :
     </ConfigContextProvider>
   </div>
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]