Skip to content

Commit 7499704

Browse files
committed
Finalize
1 parent c129177 commit 7499704

4 files changed

Lines changed: 7 additions & 17 deletions

File tree

packages/web/src/pages/sign-on-page/SignOnPage.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ReactNode, useEffect, useState } from 'react'
22

3-
import { FEED_PAGE } from '@audius/common/src/utils/route'
43
import { SystemAppearance } from '@audius/common/models'
4+
import { FEED_PAGE } from '@audius/common/src/utils/route'
55
import { themeSelectors } from '@audius/common/store'
66
import { route } from '@audius/common/utils'
77
import {
@@ -25,7 +25,6 @@ import {
2525
} from 'react-router'
2626
import { useEffectOnce, useLocalStorage } from 'react-use'
2727

28-
import landingImg from 'public-site/pages/landing-2026/assets/landing.png'
2928
import {
3029
fetchReferrer,
3130
setField,
@@ -42,6 +41,7 @@ import { useMedia } from 'hooks/useMedia'
4241
import { SignInPage } from 'pages/sign-in-page'
4342
import SignUpPage from 'pages/sign-up-page'
4443
import { NavHeader } from 'pages/sign-up-page/components/NavHeader'
44+
import landingImg from 'public-site/pages/landing-2026/assets/landing.png'
4545

4646
const {
4747
SIGN_IN_CONFIRM_EMAIL_PAGE,
@@ -64,9 +64,7 @@ const DesktopSignOnRoot = (props: RootProps) => {
6464
const routeOnExit = useSelector(getRouteOnExit)
6565
const location = useLocation()
6666

67-
const hideCloseButton = [
68-
SIGN_UP_LOADING_PAGE
69-
].some((path) => {
67+
const hideCloseButton = [SIGN_UP_LOADING_PAGE].some((path) => {
7068
const match = matchPath(path, location.pathname)
7169
return match && match.pathname === location.pathname
7270
})
@@ -178,9 +176,7 @@ const MobileSignOnRoot = (props: MobileSignOnRootProps) => {
178176
const routeOnExit = useSelector(getRouteOnExit)
179177
const location = useLocation()
180178

181-
const hideCloseButton = [
182-
SIGN_UP_LOADING_PAGE
183-
].some((path) => {
179+
const hideCloseButton = [SIGN_UP_LOADING_PAGE].some((path) => {
184180
const match = matchPath(path, location.pathname)
185181
return match && match.pathname === location.pathname
186182
})

packages/web/src/pages/sign-up-page/components/NavHeader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useCallback } from 'react'
22

3-
import { Flex, IconCaretLeft, PlainButton, useTheme } from '@audius/harmony'
3+
import { Flex, IconCaretLeft, PlainButton } from '@audius/harmony'
44
import { useMatch, useNavigate } from 'react-router'
55

66
import { useDetermineAllowedRoute } from '../utils/useDetermineAllowedRoutes'
@@ -27,7 +27,6 @@ const useIsBackAllowed = () => {
2727
export const NavHeader = () => {
2828
const isBackAllowed = useIsBackAllowed()
2929
const navigate = useNavigate()
30-
const { spacing } = useTheme()
3130

3231
const handleBack = useCallback(() => {
3332
navigate(-1)

packages/web/src/pages/sign-up-page/components/layout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ type PageFooterProps = {
188188
} & Omit<FlexProps & BoxProps, 'prefix'>
189189

190190
export const PageFooter = (props: PageFooterProps) => {
191-
const { prefix, postfix, buttonProps, centered, sticky, ...other } = props
191+
const { prefix, postfix, buttonProps, sticky, ...other } = props
192192
const { isMobile } = useMedia()
193193
// On the MobileCTAPage we use this footer outside a formik context, hence the default values
194194
const { isSubmitting, touched, isValid } = useFormikContext() ?? {
@@ -242,7 +242,6 @@ export const PageFooter = (props: PageFooterProps) => {
242242
iconRight={IconArrowRight}
243243
fullWidth
244244
isLoading={isSubmitting}
245-
246245
disabled={!touched || !isValid}
247246
{...buttonProps}
248247
>

packages/web/src/pages/sign-up-page/pages/SelectGenresPage.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ export const SelectGenresPage = () => {
7171
validateOnMount
7272
>
7373
{() => (
74-
<Page
75-
as={Form}
76-
centered
77-
transition='horizontal'
78-
>
74+
<Page as={Form} centered transition='horizontal'>
7975
<Flex
8076
direction='column'
8177
gap='2xl'

0 commit comments

Comments
 (0)