Add Search Console property links to search performance page (#374)
* Add Search Console property links to performance page * Simplify GSC property settings link
This commit is contained in:
parent
ea95eae368
commit
fec642a039
@ -1,4 +1,5 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
import { Link } from "@tanstack/react-router";
|
||||||
import {
|
import {
|
||||||
keepPreviousData,
|
keepPreviousData,
|
||||||
queryOptions,
|
queryOptions,
|
||||||
@ -190,6 +191,7 @@ export function SearchPerformancePage({ projectId }: { projectId: string }) {
|
|||||||
return (
|
return (
|
||||||
<div className="px-4 py-4 pb-24 overflow-auto md:px-6 md:py-6 md:pb-8">
|
<div className="px-4 py-4 pb-24 overflow-auto md:px-6 md:py-6 md:pb-8">
|
||||||
<div className="mx-auto max-w-7xl space-y-4">
|
<div className="mx-auto max-w-7xl space-y-4">
|
||||||
|
<div className="flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-2xl font-semibold">Search Performance</h1>
|
<h1 className="text-2xl font-semibold">Search Performance</h1>
|
||||||
<p className="text-sm text-base-content/70">
|
<p className="text-sm text-base-content/70">
|
||||||
@ -197,6 +199,17 @@ export function SearchPerformancePage({ projectId }: { projectId: string }) {
|
|||||||
Google Search Console.
|
Google Search Console.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
{report?.connected ? (
|
||||||
|
<Link
|
||||||
|
to="/p/$projectId/settings"
|
||||||
|
params={{ projectId }}
|
||||||
|
hash="search-console"
|
||||||
|
className="link link-hover shrink-0 self-start text-sm font-medium text-base-content/60 transition-colors hover:text-base-content sm:mt-1"
|
||||||
|
>
|
||||||
|
Change property
|
||||||
|
</Link>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
|
||||||
{reportQuery.isPending ? (
|
{reportQuery.isPending ? (
|
||||||
<SearchPerformanceLoadingState />
|
<SearchPerformanceLoadingState />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user