Skip to content

Commit

Permalink
fix: Removes the secondary search (#2768)
Browse files Browse the repository at this point in the history
* Remove second search

Removes second search

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
perkinsjr and autofix-ci[bot] authored Dec 19, 2024
1 parent 15f65a9 commit 46d759d
Showing 1 changed file with 13 additions and 28 deletions.
41 changes: 13 additions & 28 deletions apps/dashboard/app/(app)/apis/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { PageContent } from "@/components/page-content";
import { getTenantId } from "@/lib/auth";
import { and, db, eq, isNull, schema, sql } from "@/lib/db";
import { Nodes } from "@unkey/icons";
import { Search } from "lucide-react";
import Link from "next/link";
import { redirect } from "next/navigation";
import { ApiList } from "./client";
Expand Down Expand Up @@ -54,33 +53,19 @@ export default async function ApisOverviewPage() {
</Navbar>
<PageContent>
{unpaid ? (
<div>
<section className="flex flex-col gap-4 my-4 md:flex-row md:items-center">
<div className="flex items-center flex-grow h-8 gap-2 px-3 py-2 text-sm bg-background border rounded-md border-border focus-within:border-primary/40">
<Search className="w-4 h-4" />
<input
disabled
className="flex-grow bg-transparent placeholder:text-content-subtle focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 "
placeholder="Search.."
/>
</div>
<CreateApiButton disabled />
</section>
<div className="mt-10 flex min-h-[400px] flex-col items-center justify-center space-y-6 rounded-lg border border-dashed px-4 md:mt-24">
<h3 className="text-xl font-semibold leading-none tracking-tight text-center md:text-2xl">
Upgrade your plan
</h3>
<p className="text-sm text-center text-gray-500 md:text-base">
Team workspaces is a paid feature. Please switch to a paid plan to continue using
it.
</p>
<Link
href="/settings/billing"
className="px-4 py-2 mr-3 text-sm font-medium text-center text-white bg-gray-800 rounded-lg hover:bg-gray-500 focus:outline-none focus:ring-4 focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-500 dark:focus:ring-gray-800"
>
Subscribe
</Link>
</div>
<div className="mt-10 flex min-h-[400px] flex-col items-center justify-center space-y-6 rounded-lg border border-dashed px-4 md:mt-24">
<h3 className="text-xl font-semibold leading-none tracking-tight text-center md:text-2xl">
Upgrade your plan
</h3>
<p className="text-sm text-center text-gray-500 md:text-base">
Team workspaces is a paid feature. Please switch to a paid plan to continue using it.
</p>
<Link
href="/settings/billing"
className="px-4 py-2 mr-3 text-sm font-medium text-center text-white bg-gray-800 rounded-lg hover:bg-gray-500 focus:outline-none focus:ring-4 focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-500 dark:focus:ring-gray-800"
>
Subscribe
</Link>
</div>
) : (
<ApiList apis={apis} />
Expand Down

0 comments on commit 46d759d

Please sign in to comment.