Skip to content

Commit d8be30e

Browse files
committed
fix the component wrapper
1 parent 617bb97 commit d8be30e

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

registry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@
920920
}
921921
],
922922
"dependencies": ["lucide-react"],
923-
"registryDependencies": ["card", "separator", "utils"]
923+
"registryDependencies": ["separator", "utils"]
924924
}
925925
]
926926
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use client";
2+
export {
3+
PaymentProcessing,
4+
type PaymentProcessingTypes,
5+
} from "@/registry/billingsdk/payment-processing";

src/components/payment-processing-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { useState } from "react";
4-
import PaymentProcessing from "@/registry/billingsdk/payment-processing";
4+
import { PaymentProcessing } from "@/components/billingsdk/payment-processing";
55
import { Button } from "@/components/ui/button";
66

77
export function PaymentProcessingDemo() {

src/registry/billingsdk/payment-processing.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
"use client";
2+
13
import { Loader2, Shield, LucideIcon } from "lucide-react";
24
import { Separator } from "@/components/ui/separator";
35

4-
type PaymentProcessingTypes = {
6+
export interface PaymentProcessingTypes {
57
status?: boolean;
68
title?: string;
79
description?: string;
810
icon?: LucideIcon;
911
processLabel?: string;
1012
warning?: string;
11-
};
13+
}
1214

13-
export default function PaymentProcessing({
15+
export function PaymentProcessing({
1416
status = true,
1517
title = "Processing Payment",
1618
description = "This may take a few moments",

0 commit comments

Comments
 (0)