mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix(Nav): update dashboard link to point to sign-up page (#43384)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. Yes ## What kind of change does this PR introduce? Redirect to the signup page for "Start your project" button ## What is the current behavior? That button redirects to signin page ## What is the new behavior? Redirects to signup page ## Additional context Add any other context or screenshots.
This commit is contained in:
1 parent
de3a9eb4db
commit
6c436d5aa3
2 files changed
+17
-21
No files matched your search
@@ -1,24 +1,22 @@
|
||||
'use client'
|
||||
|
||||
import { AnimatePresence, LazyMotion, domAnimation, m } from 'framer-motion'
|
||||
import staticContent from '.generated/staticContent/_index.json'
|
||||
import ProductModulesData from '~/data/ProductModules'
|
||||
import { DEFAULT_EASE } from '~/lib/animations'
|
||||
import { useSendTelemetryEvent } from '~/lib/telemetry'
|
||||
import { useIsLoggedIn, useIsUserLoading } from 'common'
|
||||
import * as supabaseLogoWordmarkDark from 'common/assets/images/supabase-logo-wordmark--dark.png'
|
||||
import * as supabaseLogoWordmarkLight from 'common/assets/images/supabase-logo-wordmark--light.png'
|
||||
import { AnimatePresence, domAnimation, LazyMotion, m } from 'framer-motion'
|
||||
import { ChevronRight } from 'lucide-react'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { useEffect } from 'react'
|
||||
import type { Dispatch, SetStateAction } from 'react'
|
||||
|
||||
import { Accordion, Button, TextLink } from 'ui'
|
||||
import { DEFAULT_EASE } from '~/lib/animations'
|
||||
|
||||
import MenuItem from './MenuItem'
|
||||
|
||||
import { useIsLoggedIn, useIsUserLoading } from 'common'
|
||||
import * as supabaseLogoWordmarkDark from 'common/assets/images/supabase-logo-wordmark--dark.png'
|
||||
import * as supabaseLogoWordmarkLight from 'common/assets/images/supabase-logo-wordmark--light.png'
|
||||
import { ChevronRight } from 'lucide-react'
|
||||
import ProductModulesData from '~/data/ProductModules'
|
||||
import staticContent from '.generated/staticContent/_index.json'
|
||||
|
||||
import { useSendTelemetryEvent } from '~/lib/telemetry'
|
||||
|
||||
interface Props {
|
||||
open: boolean
|
||||
setOpen: Dispatch<SetStateAction<boolean>>
|
||||
@@ -294,7 +292,7 @@ const MobileMenu = ({ open, setOpen, menu }: Props) => {
|
||||
</Button>
|
||||
</Link>
|
||||
<Link
|
||||
href="https://supabase.com/dashboard"
|
||||
href="https://supabase.com/dashboard/sign-up"
|
||||
passHref
|
||||
legacyBehavior
|
||||
onClick={() =>
|
||||
|
||||
@@ -1,24 +1,22 @@
|
||||
'use client'
|
||||
|
||||
import { useIsLoggedIn, useIsUserLoading, useUser } from 'common'
|
||||
import { getMenu } from 'data/nav'
|
||||
import { DevToolbarTrigger } from 'dev-tools'
|
||||
import { useSendTelemetryEvent } from 'lib/telemetry'
|
||||
import dynamic from 'next/dynamic'
|
||||
import Link from 'next/link'
|
||||
import { usePathname } from 'next/navigation'
|
||||
import React, { useState } from 'react'
|
||||
import { useWindowSize } from 'react-use'
|
||||
|
||||
import { useIsLoggedIn, useIsUserLoading, useUser } from 'common'
|
||||
import { DevToolbarTrigger } from 'dev-tools'
|
||||
import { Button, buttonVariants, cn } from 'ui'
|
||||
import { AuthenticatedDropdownMenu } from 'ui-patterns'
|
||||
|
||||
import { useSendTelemetryEvent } from 'lib/telemetry'
|
||||
import GitHubButton from './GitHubButton'
|
||||
import HamburgerButton from './HamburgerMenu'
|
||||
import RightClickBrandLogo from './RightClickBrandLogo'
|
||||
import useDropdownMenu from './useDropdownMenu'
|
||||
|
||||
import { getMenu } from 'data/nav'
|
||||
import { usePathname } from 'next/navigation'
|
||||
|
||||
const MenuItem = dynamic(() => import('./MenuItem'))
|
||||
const MobileMenu = dynamic(() => import('./MobileMenu'))
|
||||
const NavigationMenu = dynamic(() =>
|
||||
@@ -182,7 +180,7 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {
|
||||
</Button>
|
||||
<Button className="hidden lg:block" asChild>
|
||||
<Link
|
||||
href="https://supabase.com/dashboard"
|
||||
href="https://supabase.com/dashboard/sign-up"
|
||||
onClick={() =>
|
||||
sendTelemetryEvent({
|
||||
action: 'start_project_button_clicked',
|
||||
|
||||
Reference in new issue
Block a user