mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
feat: add tariff checkbox filter, column resizing to traffic page
- TariffFilter dropdown with checkboxes for filtering by tariff - Column resizing via TanStack Table resize handles - Add allTariffs locale key to all 4 languages - Pass tariffs param to API
This commit is contained in:
@@ -26,6 +26,7 @@ export interface TrafficUsageResponse {
|
||||
offset: number;
|
||||
limit: number;
|
||||
period_days: number;
|
||||
available_tariffs: string[];
|
||||
}
|
||||
|
||||
export interface ExportCsvResponse {
|
||||
@@ -41,6 +42,7 @@ export const adminTrafficApi = {
|
||||
search?: string;
|
||||
sort_by?: string;
|
||||
sort_desc?: boolean;
|
||||
tariffs?: string;
|
||||
}): Promise<TrafficUsageResponse> => {
|
||||
const response = await apiClient.get('/cabinet/admin/traffic', { params });
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user