File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
apps/dashboard/app/(main)/websites/[id]/assistant Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 11'use client' ;
22
3- import { Robot } from '@phosphor-icons/react' ;
3+ import { RobotIcon } from '@phosphor-icons/react' ;
44
55export function LoadingMessage ( ) {
66 return (
77 < div className = "flex max-w-[85%] gap-3" >
88 < div className = "mt-1 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-muted" >
9- < Robot className = "h-4 w-4" />
9+ < RobotIcon className = "h-4 w-4" />
1010 </ div >
1111 < div className = "mr-2 rounded-lg bg-muted px-4 py-3" >
1212 < div className = "flex items-center gap-2 text-sm" >
Original file line number Diff line number Diff line change 77 CompassIcon ,
88 DotsThreeOutlineVerticalIcon ,
99 FunnelIcon ,
10+ TrendUpIcon ,
1011} from '@phosphor-icons/react' ;
1112import type { ColumnDef } from '@tanstack/react-table' ;
1213import { useAtom } from 'jotai' ;
@@ -818,7 +819,7 @@ export default function VisualizationSection() {
818819 < div
819820 className = { `flex h-8 w-8 flex-shrink-0 items-center justify-center rounded transition-all duration-300 ${ websiteData ? 'bg-primary/10' : 'bg-muted/20' } ` }
820821 >
821- < TrendUp
822+ < TrendUpIcon
822823 className = { `h-4 w-4 transition-all duration-300 ${ websiteData ? 'text-primary' : 'text-muted-foreground/60' } ` }
823824 />
824825 </ div >
Original file line number Diff line number Diff line change 33import { useAtom } from 'jotai' ;
44import dynamic from 'next/dynamic' ;
55import { useParams } from 'next/navigation' ;
6- import React , { Suspense , useEffect } from 'react' ;
6+ import { useEffect } from 'react' ;
77import { Skeleton } from '@/components/ui/skeleton' ;
88import { useWebsite } from '@/hooks/use-websites' ;
99import {
@@ -61,10 +61,13 @@ export default function AssistantPage() {
6161 const [ , setWebsiteData ] = useAtom ( websiteDataAtom ) ;
6262 const [ , setDateRange ] = useAtom ( dateRangeAtom ) ;
6363
64- // Combine atom initialization
65- React . useEffect ( ( ) => {
66- if ( id ) setWebsiteId ( id as string ) ;
67- if ( websiteData ) setWebsiteData ( websiteData ) ;
64+ useEffect ( ( ) => {
65+ if ( id ) {
66+ setWebsiteId ( id as string ) ;
67+ }
68+ if ( websiteData ) {
69+ setWebsiteData ( websiteData ) ;
70+ }
6871 setDateRange ( {
6972 start_date : new Date ( Date . now ( ) - 7 * 24 * 60 * 60 * 1000 ) . toISOString ( ) ,
7073 end_date : new Date ( ) . toISOString ( ) ,
You can’t perform that action at this time.
0 commit comments