@@ -113,7 +114,7 @@ export function EndTicketDrawer({ isOpen, onClose, onEndTicket, timeEntries = []
-
Completed support
+
Completed support
If the support was completed successfully, log the time spent. If you were not able to help, consider
adjusting any time spent, in accordance with the user's expectations and actual delivery.
diff --git a/src/components/ui/drawer-panel.tsx b/src/components/ui/drawer-panel.tsx
index 3e3020c..dfceb56 100644
--- a/src/components/ui/drawer-panel.tsx
+++ b/src/components/ui/drawer-panel.tsx
@@ -23,6 +23,8 @@ export interface DrawerPanelProps {
backdropClassName?: string
/** Extra class for the panel container */
className?: string
+ /** Extra class for the footer wrapper */
+ footerClassName?: string
}
/**
@@ -39,6 +41,7 @@ export function DrawerPanel({
width = "w-96",
backdropClassName = "bg-black/20",
className,
+ footerClassName,
}: DrawerPanelProps) {
if (!isOpen) return null
@@ -82,7 +85,9 @@ export function DrawerPanel({
)}
{children}
{footer != null && (
-
{footer}
+
+ {footer}
+
)}
>
diff --git a/src/hooks/usePaymentConnect.ts b/src/hooks/usePaymentConnect.ts
index 5be79b8..4edae48 100644
--- a/src/hooks/usePaymentConnect.ts
+++ b/src/hooks/usePaymentConnect.ts
@@ -68,7 +68,8 @@ interface StartHelperArgs {
*/
export function useStartHelperPaymentConnect() {
return useMutation({
- mutationFn: async ({ projectId }: StartHelperArgs = {}) => {
+ mutationFn: async (args: StartHelperArgs | void) => {
+ const projectId = args?.projectId
const body: Record
= { scope: "user" }
if (projectId) body.project_id = projectId
const created = await supabase.functions.invoke("payments-create-account", { body })