Dev (#50)
* update * cleanup * fixing linting and tests errors * Refactor API Parameter Handling and Update Email Transport ✅ Updated API Route Parameters: - Changed parameter type from `{ id: string }` to `Promise<{ id: string }>` in PUT and DELETE methods for better async handling. ✅ Fixed Email Transport Creation: - Updated `nodemailer.createTransporter` to `nodemailer.createTransport` for correct transport configuration. ✅ Refactored AnalyticsDashboard Component: - Changed export from default to named export for better modularity. ✅ Enhanced Email Responder Toast: - Updated toast structure to include additional properties for better user feedback. 🎯 Overall Improvements: - Improved async handling in API routes. - Ensured correct usage of nodemailer. - Enhanced component exports and user notifications.
This commit is contained in:
@@ -67,7 +67,7 @@ interface PerformanceData {
|
||||
topInteractions: Record<string, number>;
|
||||
}
|
||||
|
||||
export default function AnalyticsDashboard() {
|
||||
export function AnalyticsDashboard() {
|
||||
const [analyticsData, setAnalyticsData] = useState<AnalyticsData | null>(null);
|
||||
const [performanceData, setPerformanceData] = useState<PerformanceData | null>(null);
|
||||
const [loading, setLoading] = useState(true);
|
||||
@@ -371,3 +371,5 @@ export default function AnalyticsDashboard() {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default AnalyticsDashboard;
|
||||
|
||||
Reference in New Issue
Block a user