gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: do not show sites strings whe


From: gnunet
Subject: [taler-wallet-core] branch master updated: do not show sites strings when there is no sites
Date: Tue, 13 Feb 2024 15:34:35 +0100

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

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 8d741cf1c do not show sites strings when there is no sites
8d741cf1c is described below

commit 8d741cf1c39b76a20e227f16c42f8a4db6d5bad1
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Feb 13 11:31:04 2024 -0300

    do not show sites strings when there is no sites
---
 packages/web-util/src/components/Header.tsx | 33 ++++++++++++++++-------------
 1 file changed, 18 insertions(+), 15 deletions(-)

diff --git a/packages/web-util/src/components/Header.tsx 
b/packages/web-util/src/components/Header.tsx
index e5662fc70..0f50b8327 100644
--- a/packages/web-util/src/components/Header.tsx
+++ b/packages/web-util/src/components/Header.tsx
@@ -112,21 +112,24 @@ export function Header({ title, iconLinkURL, sites, 
onLogout, children }:
                         {/* CHILDREN */}
                         {children}
                         {/* /CHILDREN */}
-                        <li class="block sm:hidden">
-                          <div class="text-xs font-semibold leading-6 
text-gray-400">
-                            <i18n.Translate>Sites</i18n.Translate>
-                          </div>
-                          <ul role="list" class="space-y-1">
-                            {sites.map(([name, url]) => {
-                              return <li>
-                                <a href={url} target="_blank" rel="noopener 
noreferrer" class="text-gray-700 hover:text-indigo-600 hover:bg-gray-100 group 
flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold">
-                                  <span class="flex h-6 w-6 shrink-0 
items-center justify-center rounded-lg border text-[0.625rem] font-medium 
bg-white text-gray-400 border-gray-200 group-hover:border-indigo-600 
group-hover:text-indigo-600">&gt;</span>
-                                  <span class="truncate">{name}</span>
-                                </a>
-                              </li>
-                            })}
-                          </ul>
-                        </li>
+                        {sites.length > 0 ?
+                          <li class="block sm:hidden">
+                            <div class="text-xs font-semibold leading-6 
text-gray-400">
+                              <i18n.Translate>Sites</i18n.Translate>
+                            </div>
+                            <ul role="list" class="space-y-1">
+                              {sites.map(([name, url]) => {
+                                return <li>
+                                  <a href={url} target="_blank" rel="noopener 
noreferrer" class="text-gray-700 hover:text-indigo-600 hover:bg-gray-100 group 
flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold">
+                                    <span class="flex h-6 w-6 shrink-0 
items-center justify-center rounded-lg border text-[0.625rem] font-medium 
bg-white text-gray-400 border-gray-200 group-hover:border-indigo-600 
group-hover:text-indigo-600">&gt;</span>
+                                    <span class="truncate">{name}</span>
+                                  </a>
+                                </li>
+                              })}
+                            </ul>
+                          </li>
+                          : undefined
+                        }
                       </ul>
                     </nav>
                   </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]