diff --git a/src/app/features/settings/about/About.tsx b/src/app/features/settings/about/About.tsx index ec1d4da61..246f871a3 100644 --- a/src/app/features/settings/about/About.tsx +++ b/src/app/features/settings/about/About.tsx @@ -8,6 +8,7 @@ import pkg from '../../../../../package.json'; import { clearCacheAndReload } from '../../../../client/initMatrix'; import { useMatrixClient } from '../../../hooks/useMatrixClient'; import { getOriginBaseUrl, withOriginBaseUrl } from '../../../pages/pathUtils'; + const LotusLogo = withOriginBaseUrl(getOriginBaseUrl(), '/Lotus.png'); type MSC1929Contact = { diff --git a/src/app/pages/auth/AuthLayout.tsx b/src/app/pages/auth/AuthLayout.tsx index 2641ba07a..e69630086 100644 --- a/src/app/pages/auth/AuthLayout.tsx +++ b/src/app/pages/auth/AuthLayout.tsx @@ -30,6 +30,7 @@ import { AuthFlowsProvider } from '../../hooks/useAuthFlows'; import { AuthServerProvider } from '../../hooks/useAuthServer'; import { tryDecodeURIComponent } from '../../utils/dom'; import { getOriginBaseUrl, withOriginBaseUrl } from '../pathUtils'; + const LotusLogo = withOriginBaseUrl(getOriginBaseUrl() ,'/Lotus.png'); const currentAuthPath = (pathname: string): string => { diff --git a/src/app/pages/auth/oidc/oidcConfig.ts b/src/app/pages/auth/oidc/oidcConfig.ts index b046ec150..69733eb16 100644 --- a/src/app/pages/auth/oidc/oidcConfig.ts +++ b/src/app/pages/auth/oidc/oidcConfig.ts @@ -1,7 +1,8 @@ import type { OidcRegistrationClientMetadata } from 'matrix-js-sdk'; import { OIDC_CALLBACK_PATH } from '../../paths'; import { getOriginBaseUrl, withOriginBaseUrl } from '../../pathUtils'; -const LotusLogo = withOriginBaseUrl(getOriginBaseUrl() ,'/Lotus.png'); + +const LotusLogo = withOriginBaseUrl(getOriginBaseUrl(), '/Lotus.png'); /** * Absolute URL the OIDC provider redirects back to after authorization. diff --git a/src/app/pages/client/ClientNonUIFeatures.tsx b/src/app/pages/client/ClientNonUIFeatures.tsx index 69e682773..e6863f3d5 100644 --- a/src/app/pages/client/ClientNonUIFeatures.tsx +++ b/src/app/pages/client/ClientNonUIFeatures.tsx @@ -26,7 +26,13 @@ import { settingsAtom } from '../../state/settings'; import { allInvitesAtom } from '../../state/room-list/inviteList'; import { useMatrixClient } from '../../hooks/useMatrixClient'; import { useHydrateMsgDrafts } from '../../hooks/useHydrateMsgDrafts'; -import { getDirectRoomPath, getHomeRoomPath, getInboxInvitesPath, getOriginBaseUrl, withOriginBaseUrl } from '../pathUtils'; +import { + getDirectRoomPath, + getHomeRoomPath, + getInboxInvitesPath, + getOriginBaseUrl, + withOriginBaseUrl, +} from '../pathUtils'; import { mDirectAtom } from '../../state/mDirectList'; import { getMemberName, @@ -63,9 +69,10 @@ import { shouldNotifyThreadReply, THREAD_NOTIFICATIONS_FALLBACK_BEHAVIOR, } from '../../utils/threadNotifications'; -const LogoSVG = withOriginBaseUrl(getOriginBaseUrl() ,'/lotus.png'); -const LogoUnreadSVG = withOriginBaseUrl(getOriginBaseUrl() ,'/lotus-unread.png') -const LogoHighlightSVG = withOriginBaseUrl(getOriginBaseUrl() ,'/lotus-highlight.png'); + +const LogoSVG = withOriginBaseUrl(getOriginBaseUrl(), '/lotus.png'); +const LogoUnreadSVG = withOriginBaseUrl(getOriginBaseUrl(), '/lotus-unread.png'); +const LogoHighlightSVG = withOriginBaseUrl(getOriginBaseUrl(), '/lotus-highlight.png'); // Grace period after the initial sync settles before invite notifications arm, so // the async invite-atom population lands first and isn't mistaken for new invites. diff --git a/src/app/pages/client/WelcomePage.tsx b/src/app/pages/client/WelcomePage.tsx index b807501aa..fa41483a1 100644 --- a/src/app/pages/client/WelcomePage.tsx +++ b/src/app/pages/client/WelcomePage.tsx @@ -3,6 +3,7 @@ import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds'; import { Page, PageHero, PageHeroSection } from '../../components/page'; import pkg from '../../../../package.json'; import { getOriginBaseUrl, withOriginBaseUrl } from '../pathUtils'; + const LotusLogo = withOriginBaseUrl(getOriginBaseUrl() ,'/Lotus.png'); export function WelcomePage() {