| 
1 |  | -import { Button } from 'ui'  | 
2 |  | -import dynamic from 'next/dynamic'  | 
3 |  | -import { AIDemoPanel } from '~/components/AIDemo/Panel'  | 
4 |  | -import { useEffect, useState } from 'react'  | 
5 |  | -import { SqlSnippet } from '~/components/AIDemo/SqlSnippet'  | 
6 |  | -import { NextSeo } from 'next-seo'  | 
7 |  | -import { motion } from 'framer-motion'  | 
8 |  | -import { useRouter } from 'next/router'  | 
9 | 1 | import { useIsLoggedIn, useIsUserLoading } from 'common'  | 
 | 2 | +import { motion } from 'framer-motion'  | 
 | 3 | +import { NextSeo } from 'next-seo'  | 
 | 4 | +import dynamic from 'next/dynamic'  | 
10 | 5 | import Link from 'next/link'  | 
 | 6 | +import { useRouter } from 'next/router'  | 
 | 7 | +import { useEffect, useState } from 'react'  | 
 | 8 | +import { Button } from 'ui'  | 
11 | 9 | import DotGrid from '~/components/AIDemo/DotGrid'  | 
 | 10 | +import { AIDemoPanel } from '~/components/AIDemo/Panel'  | 
 | 11 | +import { SqlSnippet } from '~/components/AIDemo/SqlSnippet'  | 
12 | 12 | import { EASE_OUT } from '../lib/animations'  | 
13 | 13 | 
 
  | 
14 | 14 | const DefaultLayout = dynamic(() => import('~/components/Layouts/Default'))  | 
@@ -680,18 +680,13 @@ function Assistant() {  | 
680 | 680 |                   more. The Assistant is here to help.  | 
681 | 681 |                 </p>  | 
682 | 682 |                 <div className="min-h-12 flex items-center gap-x-2">  | 
683 |  | -                  {!isUserLoading &&  | 
684 |  | -                    (isLoggedIn ? (  | 
685 |  | -                      <Button type="primary" size="medium" asChild>  | 
686 |  | -                        <Link href="/dashboard/project/_">Dashboard</Link>  | 
687 |  | -                      </Button>  | 
688 |  | -                    ) : (  | 
689 |  | -                      <Button type="primary" size="medium" asChild>  | 
690 |  | -                        <Link href="https://supabase.com/dashboard/project/_">  | 
691 |  | -                          Start your project  | 
692 |  | -                        </Link>  | 
693 |  | -                      </Button>  | 
694 |  | -                    ))}  | 
 | 683 | +                  {!isUserLoading && (  | 
 | 684 | +                    <Button type="primary" size="medium" asChild>  | 
 | 685 | +                      <Link href="/dashboard/project/_?aiAssistantPanelOpen=true">  | 
 | 686 | +                        {isLoggedIn ? 'Dashboard' : 'Start your project'}  | 
 | 687 | +                      </Link>  | 
 | 688 | +                    </Button>  | 
 | 689 | +                  )}  | 
695 | 690 |                   <Button type="default" size="medium" asChild>  | 
696 | 691 |                     <Link  | 
697 | 692 |                       target="_blank"  | 
 | 
0 commit comments