File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
apps/dashboard/app/(main)/websites/[id] Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11'use client' ;
22
3- import type { DynamicQueryFilter } from '@databuddy/shared' ;
3+ import type { DynamicQueryFilter , Website } from '@databuddy/shared' ;
44import { WarningIcon } from '@phosphor-icons/react' ;
55import { useAtom } from 'jotai' ;
66import dynamic from 'next/dynamic' ;
@@ -103,7 +103,7 @@ function WebsiteDetailsPage() {
103103 const settingsProps : WebsiteDataTabProps = {
104104 websiteId : id as string ,
105105 dateRange,
106- websiteData : data ,
106+ websiteData : data as Website ,
107107 } ;
108108
109109 const tabProps : FullTabProps = {
@@ -176,24 +176,20 @@ function WebsiteDetailsPage() {
176176 return (
177177 < div >
178178 < Tabs
179- className = "space-y-4 py-6"
180179 defaultValue = "overview"
181180 onValueChange = { ( value ) => setActiveTab ( value as TabId ) }
182181 value = { activeTab }
183182 >
184- < div className = "relative border-b" >
185- < TabsList className = "h-10 w-full justify-start overflow-x-auto bg-transparent p-0" >
183+ < div className = "flex h-10 w-full border-b" >
184+ < TabsList className = "h-full w-full justify-start overflow-x-auto rounded-none border-0 bg-transparent p-0" >
186185 { tabs . map ( ( tab ) => (
187186 < TabsTrigger
188- className = "relative h-10 cursor-pointer touch-manipulation whitespace-nowrap rounded-none px-2 text-xs transition-colors hover:bg-muted/50 sm:px-4 sm :text-sm "
187+ className = "h-full cursor-pointer rounded-none border-b-2 border-transparent px-4 text-sm data-[state=active]:border-primary data-[state=active]:font-medium data-[state=active] :text-foreground "
189188 key = { tab . id }
190189 onClick = { ( ) => setActiveTab ( tab . id ) }
191190 value = { tab . id }
192191 >
193192 { tab . label }
194- { activeTab === tab . id && (
195- < div className = "absolute bottom-0 left-0 h-[2px] w-full bg-primary" />
196- ) }
197193 </ TabsTrigger >
198194 ) ) }
199195 </ TabsList >
You can’t perform that action at this time.
0 commit comments