refactor(FE): Remove unused imports and redundant code

This commit is contained in:
rstubryan
2026-02-20 14:17:26 +07:00
parent de0f9ae985
commit 1f2f3acebb
90 changed files with 222 additions and 474 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import {
DailyMarketingReport,
DailyMarketingReportResponse,
} from '@/types/api/report/marketing';
import { isResponseError, isResponseSuccess } from '@/lib/api-helper';
import { isResponseError } from '@/lib/api-helper';
import { formatDate } from '@/lib/helper';
export class MarketingReportApiService extends BaseApiService<
@@ -68,7 +68,7 @@ export class MarketingReportApiService extends BaseApiService<
// triggers download in browser
XLSX.writeFile(wb, 'laporan-penjualan-harian.xlsx');
} catch (error) {
} catch {
toast.error('Gagal melakukan export penjualan harian! Coba lagi.');
}
}