From 630d6b74445b93994c8d039bbdda28a9ecf3a6a7 Mon Sep 17 00:00:00 2001 From: r41ph Date: Mon, 9 Dec 2024 15:36:26 +0000 Subject: [PATCH] fix: align language switcher --- web-components/src/components/header/Header.styles.ts | 2 +- .../components/organisms/ListProject/ListProject.tsx | 10 +++------- .../organisms/RegistryLayout/RegistryLayout.Header.tsx | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/web-components/src/components/header/Header.styles.ts b/web-components/src/components/header/Header.styles.ts index cb223e6c6b..e00d7668da 100644 --- a/web-components/src/components/header/Header.styles.ts +++ b/web-components/src/components/header/Header.styles.ts @@ -70,7 +70,7 @@ export const useHeaderStyles = makeStyles()( }, '& li.MuiMenuItem-root, li.MuiMenuItem-root > div': { display: 'flex', - alignSelf: 'end', + alignSelf: 'center', backgroundColor: 'inherit', textDecoration: 'none', }, diff --git a/web-marketplace/src/components/organisms/ListProject/ListProject.tsx b/web-marketplace/src/components/organisms/ListProject/ListProject.tsx index 32771dfef8..862f887781 100644 --- a/web-marketplace/src/components/organisms/ListProject/ListProject.tsx +++ b/web-marketplace/src/components/organisms/ListProject/ListProject.tsx @@ -12,7 +12,6 @@ import { useAuth } from 'lib/auth/auth'; import { getBalanceQuery } from 'lib/queries/react-query/cosmos/bank/getBalanceQuery/getBalanceQuery'; import { DRAFT_ID } from 'pages/Dashboard/MyProjects/MyProjects.constants'; -import { useAuthData } from 'hooks/useAuthData'; import { useQueryIsIssuer } from 'hooks/useQueryIsIssuer'; import { useWallet } from '../../../lib/wallet/wallet'; @@ -24,7 +23,6 @@ const ListProject = () => { const { _ } = useLingui(); const { wallet } = useWallet(); const { activeAccountId, activeAccount } = useAuth(); - const { noAccountAndNoWallet } = useAuthData(); const navigate = useNavigate(); const isConnectingRef = useRef(false); @@ -50,12 +48,10 @@ const ListProject = () => { ); return ( -
+ <> {!isLoadingIsIssuer && ( { modalState={modalState} redirectRoute="project-pages/draft/basic-info" /> -
+ ); }; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.Header.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.Header.tsx index 5b2e24adab..97d21cf187 100644 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.Header.tsx +++ b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.Header.tsx @@ -133,7 +133,7 @@ const RegistryLayoutHeader: React.FC = () => { {clientConfig.listProject && }