Skip to content

Commit

Permalink
💚 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed May 5, 2024
1 parent 1d82310 commit 03dd285
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
6 changes: 2 additions & 4 deletions apps/client-ts/src/app/(Dashboard)/api-keys/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
Expand All @@ -35,8 +34,7 @@ import * as z from "zod"
import { zodResolver } from "@hookform/resolvers/zod"
import { useForm } from "react-hook-form"
import { DataTableLoading } from "@/components/shared/data-table-loading";
import { Heading } from "@/components/ui/heading";
import Cookies from 'js-cookie';
import {CustomHeading} from "@/components/shared/custom-heading";

const formSchema = z.object({
apiKeyIdentifier: z.string().min(2, {
Expand Down Expand Up @@ -121,7 +119,7 @@ export default function Page() {
<div className="flex-1 space-y-4 p-4 md:p-8 pt-6">
<div className="flex-1 space-y-4 p-8 pt-6">
<div className="flex flex-col items-start justify-between space-y-2">
<Heading
<CustomHeading
title="API Keys"
description={
<>
Expand Down
2 changes: 1 addition & 1 deletion apps/client-ts/src/app/(Dashboard)/configuration/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default function Page() {
<CardTitle className="text-left">Your Fields Mapping</CardTitle>
<CardDescription className="text-left">
You built {mappings ? mappings.length : <Skeleton className="w-[20px] h-[12px] rounded-md" />} fields mappings.
<a href="https://docs.panora.dev/core-concepts/custom-fields" target="_blank" rel="noopener noreferrer"><strong> Learn more about custom field mappings</strong></a>
<a href="https://docs.panora.dev/core-concepts/custom-fields" target="_blank" rel="noopener noreferrer">Learn more about custom field mappings</a>
</CardDescription>
</CardHeader>
<Separator className="mb-10"/>
Expand Down
16 changes: 16 additions & 0 deletions apps/client-ts/src/components/shared/custom-heading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { ReactNode } from "react";

interface HeadingProps {
title: string;
description: ReactNode;
}

export const CustomHeading: React.FC<HeadingProps> = ({ title, description }) => {
return (
<div>
<h2 className="text-3xl font-bold tracking-tight">{title}</h2>
<p className="text-sm text-muted-foreground">{description}</p>
</div>
);
};

2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 03dd285

Please sign in to comment.