Update import path for SubCard component in AddressCard to improve module structure and maintainability.

This commit is contained in:
barsa 2025-09-25 15:12:06 +09:00
parent 9751278a4e
commit 4447278b2c
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,33 @@
export interface WhmcsApiConfig {
baseUrl: string;
identifier: string;
secret: string;
timeout?: number;
retryAttempts?: number;
retryDelay?: number;
// Optional elevated admin credentials for privileged actions (eg. AcceptOrder)
adminUsername?: string;
adminPasswordHash?: string; // MD5 hash of admin password
}
export interface WhmcsRequestOptions {
useAdminAuth?: boolean;
timeout?: number;
retryAttempts?: number;
}
export interface WhmcsRetryConfig {
maxAttempts: number;
baseDelay: number;
maxDelay: number;
backoffMultiplier: number;
}
export interface WhmcsConnectionStats {
totalRequests: number;
successfulRequests: number;
failedRequests: number;
averageResponseTime: number;
lastRequestTime?: Date;
lastErrorTime?: Date;
}

View File

@ -1,6 +1,6 @@
"use client";
import { SubCard } from "@/components/molecules/SubCard";
import { SubCard } from "@/components/molecules/SubCard/SubCard";
import { MapPinIcon, PencilIcon, CheckIcon, XMarkIcon } from "@heroicons/react/24/outline";
import { AddressForm, type AddressFormProps } from "@/features/catalog/components";
import type { Address } from "@customer-portal/domain";