@@ -96,7 +96,7 @@ const AgentStorePage = () => {
9696 } )
9797
9898 // Fetch user's publishers if signed in
99- const { data : publishers = [ ] } = useQuery < PublisherProfileResponse [ ] > ( {
99+ const { data : publishers } = useQuery < PublisherProfileResponse [ ] > ( {
100100 queryKey : [ 'user-publishers' ] ,
101101 queryFn : async ( ) => {
102102 const response = await fetch ( '/api/publishers' )
@@ -157,7 +157,7 @@ const AgentStorePage = () => {
157157
158158 // Publisher button logic
159159 const renderPublisherButton = ( ) => {
160- if ( ! session ) {
160+ if ( ! session || ! publishers ) {
161161 return null // Don't show anything if signed out
162162 }
163163
@@ -388,18 +388,20 @@ const AgentStorePage = () => {
388388 < div className = "container mx-auto py-8 px-4" >
389389 < div className = "max-w-7xl mx-auto" >
390390 { /* Header */ }
391- < AnimatedElement type = "fade" className = "text-center mb-12" >
391+ < div className = "text-center mb-12" >
392392 < div className = "flex items-center justify-between mb-4" >
393393 < div className = "flex-1" />
394394 < h1 className = "text-4xl font-bold text-white" > Agent Store</ h1 >
395395 < div className = "flex-1 flex justify-end" >
396- { renderPublisherButton ( ) }
396+ < AnimatedElement type = "slide" delay = { 0.1 } >
397+ { renderPublisherButton ( ) }
398+ </ AnimatedElement >
397399 </ div >
398400 </ div >
399401 < p className = "text-xl text-muted-foreground max-w-2xl mx-auto" >
400402 Browse all published AI agents. Run, compose, or fork them.
401403 </ p >
402- </ AnimatedElement >
404+ </ div >
403405
404406 { /* Search and Filters */ }
405407 < AnimatedElement type = "slide" delay = { 0.1 } className = "mb-8" >
@@ -452,11 +454,11 @@ const AgentStorePage = () => {
452454 ) ) }
453455 </ div >
454456 ) : (
455- < >
457+ < AnimatedElement type = "fade" delay = { 0.1 } >
456458 { /* Editor's Choice Section */ }
457459 { filteredEditorsChoice . length > 0 && (
458460 < div className = "mb-12" >
459- < AnimatedElement type = "fade" className = "mb-6" >
461+ < div className = "mb-6" >
460462 < div className = "flex items-center gap-3 mb-6" >
461463 < Star className = "h-6 w-6 text-amber-500" />
462464 < h2 className = "text-2xl font-bold text-amber-400" >
@@ -467,7 +469,7 @@ const AgentStorePage = () => {
467469 Handpicked agents recommended by our team for their
468470 reliability, performance, and versatility.
469471 </ p >
470- </ AnimatedElement >
472+ </ div >
471473 < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" >
472474 { filteredEditorsChoice . map ( ( agent , index ) => (
473475 < motion . div
@@ -507,7 +509,7 @@ const AgentStorePage = () => {
507509 </ div >
508510 </ div >
509511 ) }
510- </ >
512+ </ AnimatedElement >
511513 ) }
512514
513515 { filteredAndSortedAgents . length === 0 &&
0 commit comments