Skip to content

Commit

Permalink
fix: Point all Start Selling buttons to new Sell flow (#14136)
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 authored Jul 2, 2024
1 parent 30b8f2a commit a424a7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Button, Text, Box } from "@artsy/palette"
import { RouterLink } from "System/Components/RouterLink"
import { useMarketingLandingTracking } from "Apps/Consign/Routes/MarketingLanding/Utils/marketingLandingTracking"
import { ContextModule, Intent } from "@artsy/cohesion"
import { useSystemContext } from "System/Hooks/useSystemContext"
import { Box, Button, Text } from "@artsy/palette"
import { useMarketingLandingTracking } from "Apps/Consign/Routes/MarketingLanding/Utils/marketingLandingTracking"
import { useAuthDialog } from "Components/AuthDialog"
import { RouterLink } from "System/Components/RouterLink"
import { useFeatureFlag } from "System/Hooks/useFeatureFlag"
import { useSystemContext } from "System/Hooks/useSystemContext"

export const SWAFooter: React.FC = () => {
const enableNewSubmissionFlow = useFeatureFlag("onyx_new_submission_flow")
const { trackStartSellingClick } = useMarketingLandingTracking()
const { isLoggedIn } = useSystemContext()
const { showAuthDialog } = useAuthDialog()
Expand All @@ -24,7 +26,7 @@ export const SWAFooter: React.FC = () => {
as={RouterLink}
width={["100%", 300]}
variant="primaryBlack"
to="/sell/submission"
to={enableNewSubmissionFlow ? "sell2/intro" : "/sell/submission"}
onClick={event => {
if (!isLoggedIn) {
event.preventDefault()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { ContextModule, Intent } from "@artsy/cohesion"
import { Button, Text, useTheme, Box } from "@artsy/palette"
import { Box, Button, Text, useTheme } from "@artsy/palette"
import { Z } from "Apps/Components/constants"
import { useMarketingLandingTracking } from "Apps/Consign/Routes/MarketingLanding/Utils/marketingLandingTracking"
import { useAuthDialog } from "Components/AuthDialog"
import { RouterLink } from "System/Components/RouterLink"
import { useFeatureFlag } from "System/Hooks/useFeatureFlag"
import { useSystemContext } from "System/Hooks/useSystemContext"

export const SWAStickyFooter = () => {
const enableNewSubmissionFlow = useFeatureFlag("onyx_new_submission_flow")
const {
trackStartSellingClick,
trackGetInTouchClick,
Expand Down Expand Up @@ -38,7 +40,7 @@ export const SWAStickyFooter = () => {
as={RouterLink}
width="100%"
variant="primaryBlack"
to="/sell/submission"
to={enableNewSubmissionFlow ? "sell2/intro" : "/sell/submission"}
onClick={event => {
if (!isLoggedIn) {
event.preventDefault()
Expand Down

0 comments on commit a424a7e

Please sign in to comment.