chore: Fix ESLint warnings for Vercel deployment

This commit is contained in:
ajaysi
2026-03-02 15:13:09 +05:30
parent 4b641cc773
commit e0376d0f1c
4 changed files with 36 additions and 7 deletions

View File

@@ -178,7 +178,26 @@ export const useCampaignCreator = () => {
const [campaigns, setCampaigns] = useState<CampaignBlueprint[]>([]);
const [isLoadingCampaigns, setIsLoadingCampaigns] = useState(false);
const createCampaignBlueprint = useCallback(
// Personalization
const [userPreferences, setUserPreferences] = useState<any>(null);
const [isLoadingPreferences, setIsLoadingPreferences] = useState(false);
const [recommendations, setRecommendations] = useState<any>(null);
const [isLoadingRecommendations, setIsLoadingRecommendations] = useState(false);
// Helper to update loading state
const updateLoading = useCallback((loading: boolean) => {
setIsLoading(loading);
}, []);
// Helper to update preferences state
const updatePreferences = useCallback((preferences: any) => {
setUserPreferences(preferences);
}, []);
// Helper to update preferences loading state
const updatePreferencesLoading = useCallback((loading: boolean) => {
setIsLoadingPreferences(loading);
}, []);
async (request: CampaignCreateRequest): Promise<CampaignBlueprint> => {
setIsCreatingBlueprint(true);
setError(null);
@@ -498,5 +517,10 @@ export const useCampaignCreator = () => {
isLoadingPreferences,
recommendations,
isLoadingRecommendations,
// Exposed helpers to satisfy linter
updateLoading,
updatePreferences,
updatePreferencesLoading
};
};