remove prefetch false
This commit is contained in:
@@ -69,7 +69,6 @@ export function ListReports({ reports }: ListReportsProps) {
|
||||
return (
|
||||
<div className="card" key={report.id}>
|
||||
<Link
|
||||
prefetch={false}
|
||||
href={`/${params.organizationSlug}/${params.projectId}/reports/${report.id}`}
|
||||
className="flex items-center justify-between border-b border-border p-4 leading-none [&_svg]:hover:opacity-100"
|
||||
shallow
|
||||
|
||||
@@ -99,7 +99,6 @@ export function EventListItem(props: EventListItemProps) {
|
||||
<div className="flex gap-4">
|
||||
<Tooltiper asChild content={getProfileName(profile)}>
|
||||
<Link
|
||||
prefetch={false}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
}}
|
||||
|
||||
@@ -40,7 +40,6 @@ function LinkWithIcon({
|
||||
const active = overrideActive || href === pathname;
|
||||
return (
|
||||
<Link
|
||||
prefetch={false}
|
||||
className={cn(
|
||||
'text-text flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium leading-none transition-all transition-colors hover:bg-slate-100',
|
||||
active && 'bg-slate-100',
|
||||
|
||||
@@ -55,7 +55,7 @@ export function LayoutSidebar({
|
||||
<Hamburger toggled={active} onToggle={setActive} size={20} />
|
||||
</div>
|
||||
<div className="flex h-16 shrink-0 items-center border-b border-border px-4">
|
||||
<Link prefetch={false} href="/">
|
||||
<Link href="/">
|
||||
<Logo />
|
||||
</Link>
|
||||
</div>
|
||||
@@ -68,7 +68,6 @@ export function LayoutSidebar({
|
||||
<div className="h-8 w-full bg-gradient-to-t from-background to-background/0"></div>
|
||||
<div className="flex flex-col gap-2 bg-background p-4 pt-0">
|
||||
<Link
|
||||
prefetch={false}
|
||||
className={cn('flex gap-2', buttonVariants())}
|
||||
href={`/${organizationSlug}/${projectId}/reports`}
|
||||
>
|
||||
|
||||
@@ -48,7 +48,6 @@ export function ProfileList({ data, count, limit = 50 }: ProfileListProps) {
|
||||
render(profile) {
|
||||
return (
|
||||
<Link
|
||||
prefetch={false}
|
||||
href={`/${organizationSlug}/${projectId}/profiles/${profile.id}`}
|
||||
className="flex items-center gap-2 font-medium"
|
||||
>
|
||||
|
||||
@@ -42,7 +42,6 @@ async function ProfileTopServer({ organizationSlug, projectId }: Props) {
|
||||
render(profile) {
|
||||
return (
|
||||
<Link
|
||||
prefetch={false}
|
||||
href={`/${organizationSlug}/${projectId}/profiles/${profile.id}`}
|
||||
className="flex items-center gap-2 font-medium"
|
||||
>
|
||||
|
||||
@@ -44,7 +44,6 @@ const Connect = ({ project }: Props) => {
|
||||
<ButtonContainer>
|
||||
<div />
|
||||
<LinkButton
|
||||
prefetch={false}
|
||||
href={`/onboarding/${project.id}/verify`}
|
||||
size="lg"
|
||||
className="min-w-28 self-start"
|
||||
|
||||
@@ -64,7 +64,6 @@ const Verify = ({ project, events }: Props) => {
|
||||
/>
|
||||
<ButtonContainer>
|
||||
<LinkButton
|
||||
prefetch={false}
|
||||
href={`/onboarding/${project.id}/connect`}
|
||||
size="lg"
|
||||
className="min-w-28 self-start"
|
||||
@@ -76,7 +75,6 @@ const Verify = ({ project, events }: Props) => {
|
||||
<div className="flex items-center gap-8">
|
||||
{!verified && (
|
||||
<Link
|
||||
prefetch={false}
|
||||
href={`/${project.organizationSlug}/${project.id}`}
|
||||
className="text-sm text-muted-foreground underline"
|
||||
>
|
||||
@@ -85,7 +83,6 @@ const Verify = ({ project, events }: Props) => {
|
||||
)}
|
||||
|
||||
<LinkButton
|
||||
prefetch={false}
|
||||
href="/"
|
||||
size="lg"
|
||||
className={cn(
|
||||
|
||||
@@ -9,7 +9,6 @@ const SkipOnboarding = () => {
|
||||
if (!pathname.startsWith('/onboarding')) return null;
|
||||
return (
|
||||
<Link
|
||||
prefetch={false}
|
||||
href="/"
|
||||
className="flex items-center gap-2 text-sm text-muted-foreground"
|
||||
>
|
||||
|
||||
@@ -46,7 +46,6 @@ export function OverviewShare({ data }: OverviewShareProps) {
|
||||
{data?.public && (
|
||||
<DropdownMenuItem asChild>
|
||||
<Link
|
||||
prefetch={false}
|
||||
href={`${process.env.NEXT_PUBLIC_DASHBOARD_URL}/share/overview/${data.id}`}
|
||||
>
|
||||
<EyeIcon size={16} className="mr-2" />
|
||||
|
||||
@@ -65,7 +65,6 @@ export default function FunnelStepDetails(props: Props) {
|
||||
render(profile) {
|
||||
return (
|
||||
<Link
|
||||
prefetch={false}
|
||||
href={`/${organizationSlug}/${projectId}/profiles/${profile.id}`}
|
||||
className="flex items-center gap-2 font-medium"
|
||||
>
|
||||
|
||||
@@ -39,7 +39,6 @@ const Footer = ({ framework }: Pick<Props, 'framework'>) => (
|
||||
Close
|
||||
</Button>
|
||||
<LinkButton
|
||||
prefetch={false}
|
||||
target="_blank"
|
||||
href={framework.href}
|
||||
className="flex-1"
|
||||
|
||||
Reference in New Issue
Block a user