Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9d589e

Browse files
authored
fix: onboarding issues (dailydotdev#4259)
1 parent e58eed0 commit e9d589e

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

packages/shared/src/components/auth/EmailCodeVerification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function EmailCodeVerification({
177177
</Typography>
178178
)}
179179
<span className="text-text-tertiary">
180-
Didn&#39;t get verification codes?{' '}
180+
Didn&#39;t get a verification code?{' '}
181181
<button
182182
type="button"
183183
disabled={resendTimer > 0}

packages/shared/src/components/auth/OnboardingRegistrationForm.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ const OnboardingRegistrationForm = ({
183183
type="email"
184184
name="email"
185185
focused={onboardingPapercut}
186+
pressed={onboardingPapercut}
187+
className={{
188+
container: onboardingPapercut && 'bg-overlay-active-salt',
189+
}}
186190
/>
187191

188192
{shouldLogin && (
@@ -216,6 +220,7 @@ const OnboardingRegistrationForm = ({
216220
<OrDivider
217221
className={{
218222
container: classNames('mb-8', className?.onboardingDivider),
223+
text: onboardingPapercut ? 'text-text-tertiary' : undefined,
219224
}}
220225
label="Or sign up with"
221226
aria-hidden

packages/shared/src/components/fields/BaseFieldContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface FieldStateProps {
1010
isLocked?: boolean;
1111
hasInput?: boolean;
1212
focused?: boolean;
13+
pressed?: boolean;
1314
disabled?: boolean;
1415
invalid?: boolean;
1516
hasActionIcon?: boolean;

packages/shared/src/components/fields/TextField.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
.input {
2+
&:global(.pressed)::placeholder {
3+
color: var(--theme-text-primary);
4+
}
5+
}
6+
17
.field {
28
&:hover {
39
box-shadow: inset 0.125rem 0 0 0 var(--theme-text-primary);

packages/shared/src/components/fields/TextField.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function TextFieldComponent(
5454
disabled,
5555
rightIcon,
5656
required,
57+
pressed,
5758
onBlur: onExternalBlur,
5859
focused: focusedProp,
5960
inputRef: inputRefProp,
@@ -180,6 +181,7 @@ function TextFieldComponent(
180181
readOnly={readOnly}
181182
size={1}
182183
className={classNames(
184+
styles.input,
183185
'self-stretch text-ellipsis',
184186
className?.input,
185187
getFieldFontColor({
@@ -189,6 +191,7 @@ function TextFieldComponent(
189191
focused,
190192
hasActionIcon: !!rightIcon,
191193
}),
194+
{ pressed },
192195
)}
193196
disabled={disabled}
194197
required={required}

packages/webapp/pages/onboarding.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,11 @@ export function OnboardPage(): ReactElement {
428428
}}
429429
/>
430430
<AuthOptions {...authOptionProps} />
431+
{onboardingPapercut && <SignupDisclaimer />}
431432
</div>
432-
<SignupDisclaimer className="mb-0 tablet:mb-10 tablet:hidden" />
433+
{!onboardingPapercut && (
434+
<SignupDisclaimer className="mb-0 tablet:mb-10 tablet:hidden" />
435+
)}
433436
</>
434437
)}
435438
{isAuthenticating && activeScreen === OnboardingStep.Intro ? (
@@ -471,7 +474,7 @@ export function OnboardPage(): ReactElement {
471474
</div>
472475
)}
473476
</div>
474-
{showOnboardingPage && <OnboardingFooter />}
477+
{showOnboardingPage && !onboardingPapercut && <OnboardingFooter />}
475478
{layout.hasFooter && <FooterLinks className="mx-auto pb-6" />}
476479
</div>
477480
</PaymentContextProvider>

0 commit comments

Comments
 (0)