Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): space invite header above sign-in options

Hampus761fcedc95e7
diff --git a/fluxer_app/src/features/auth/flow/ResourceAuthPages.tsx b/fluxer_app/src/features/auth/flow/ResourceAuthPages.tsx
index 9e10ef412..5687101fe 100644
--- a/fluxer_app/src/features/auth/flow/ResourceAuthPages.tsx
+++ b/fluxer_app/src/features/auth/flow/ResourceAuthPages.tsx
@@ -32,7 +32,7 @@ import type {ReactNode} from 'react';
import {useCallback, useMemo} from 'react';
export type ResourceAuthMode = 'login' | 'register';
-export interface ResourceAuthState<T> {
+interface ResourceAuthState<T> {
loading: boolean;
error: boolean;
resource: T | null;
@@ -129,7 +129,7 @@ const ResourceAuthContent = observer(function ResourceAuthContent<T>({
desktopHandoff={isHandoffRequest(params)}
excludeCurrentUser={false}
extraTopContent={
- <>
+ <div className={sharedStyles.loginHeader} data-flx={`${prefix}.login-header`}>
<DesktopDeepLinkPrompt
code={id}
kind={config.kind}
@@ -137,7 +137,7 @@ const ResourceAuthContent = observer(function ResourceAuthContent<T>({
data-flx={`${prefix}.desktop-deep-link-prompt`}
/>
{config.renderHeader(state.resource, 'login', false)}
- </>
+ </div>
}
forgotPasswordAction={null}
showTitle={false}
diff --git a/fluxer_app/src/features/invite/components/pages/InviteLoginPage.tsx b/fluxer_app/src/features/invite/components/pages/InviteLoginPage.tsx
index 9233869b3..2db7b6c19 100644
--- a/fluxer_app/src/features/invite/components/pages/InviteLoginPage.tsx
+++ b/fluxer_app/src/features/invite/components/pages/InviteLoginPage.tsx
@@ -4,6 +4,7 @@ import {Routes} from '@app/app/Routes';
import type {RuntimeConfigSnapshot} from '@app/features/app/state/InstanceSnapshotStore';
import {AuthLoginLayout} from '@app/features/auth/flow/AuthLoginLayout';
import {AuthLoginStepCarousel} from '@app/features/auth/flow/AuthLoginStepCarousel';
+import sharedStyles from '@app/features/auth/flow/AuthPageStyles.module.css';
import {AuthRouterLink} from '@app/features/auth/flow/AuthRouterLink';
import {AuthRuntimeTargetGate} from '@app/features/auth/flow/AuthRuntimeTargetGate';
import {isHandoffRequest} from '@app/features/auth/flow/auth_login_core/useDesktopHandoffFlow';
@@ -48,7 +49,7 @@ const InviteLoginPage = observer(function InviteLoginPage({code, invite}: Invite
desktopHandoff={isHandoff}
excludeCurrentUser={false}
extraTopContent={
- <>
+ <div className={sharedStyles.loginHeader} data-flx="invite.invite-login-page.login-header">
<DesktopDeepLinkPrompt
code={code}
kind="invite"
@@ -56,7 +57,7 @@ const InviteLoginPage = observer(function InviteLoginPage({code, invite}: Invite
data-flx="invite.invite-login-page.desktop-deep-link-prompt"
/>
<InviteHeader invite={invite} data-flx="invite.invite-login-page.invite-header" />
- </>
+ </div>
}
forgotPasswordAction={null}
showTitle={false}