Constant data is added and resuable tabs added
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
|
||||
import { TableRowData } from '@/constants/types';
|
||||
import {
|
||||
LayoutGrid,
|
||||
Smile,
|
||||
@@ -202,4 +204,32 @@ export const Reqeusttabs: string[] = [
|
||||
'TFM Requests',
|
||||
'Engineering',
|
||||
'Schedule Complaints'
|
||||
];
|
||||
|
||||
export const statusFilters = [
|
||||
{ label: 'All', count: 18 },
|
||||
{ label: 'Registered', count: 4 },
|
||||
{ label: 'Assigned', count: 3 },
|
||||
{ label: 'Working', count: 4 },
|
||||
{ label: 'Completed', count: 3 },
|
||||
{ label: 'Overdue', count: 4 },
|
||||
];
|
||||
|
||||
|
||||
|
||||
// Data model interface
|
||||
|
||||
|
||||
// Sample data extracted from your screenshot
|
||||
export const mockData: TableRowData[] = [
|
||||
{ id: '1', block: 'Block 1', floor: 'G', zone: 'Z2', department: 'Electrical', location: 'Main lobby', window: '06:00–17:30', tat: '60m', sched: 8, approval: true, status: 'INACTIVE' },
|
||||
{ id: '2', block: 'Block 2', floor: '3', zone: 'Z2', department: 'Electrical', location: 'Main lobby', window: '08:00–23:59', tat: '30m', sched: 4, approval: false, status: 'ACTIVE' },
|
||||
{ id: '3', block: 'Block 2', floor: '3', zone: 'Z1', department: 'Inspection work', location: 'Cafeteria', window: '06:00–17:30', tat: '20m', sched: 8, approval: true, status: 'ACTIVE' },
|
||||
{ id: '4', block: 'Block 1', floor: 'G', zone: 'Z1', department: 'HVAC', location: 'Server room', window: '08:00–18:00', tat: '30m', sched: 4, approval: false, status: 'INACTIVE' },
|
||||
{ id: '5', block: 'Block 2', floor: '3', zone: 'N', department: 'Inspection work', location: 'Server room', window: '08:00–18:00', tat: '60m', sched: 8, approval: true, status: 'ACTIVE' },
|
||||
{ id: '6', block: 'Block 2', floor: 'G', zone: 'Z1', department: 'Electrical', location: 'Reception', window: '06:00–18:00', tat: '60m', sched: 6, approval: false, status: 'ACTIVE' },
|
||||
{ id: '7', block: 'Block 1', floor: 'G', zone: 'Z2', department: 'Electrical', location: 'Food court', window: '06:00–17:30', tat: '60m', sched: 8, approval: true, status: 'ACTIVE' },
|
||||
{ id: '8', block: 'Block 2', floor: '3', zone: 'Z2', department: 'Electrical', location: 'Cafeteria', window: '08:00–23:59', tat: '30m', sched: 4, approval: false, status: 'ACTIVE' },
|
||||
{ id: '9', block: 'Block 2', floor: '3', zone: 'Z1', department: 'Inspection work', location: 'Gym', window: '06:00–17:30', tat: '20m', sched: 8, approval: true, status: 'INACTIVE' },
|
||||
{ id: '10', block: 'Block 1', floor: 'G', zone: 'Z1', department: 'HVAC', location: 'Lobby', window: '08:00–18:00', tat: '30m', sched: 4, approval: false, status: 'ACTIVE' },
|
||||
];
|
||||
@@ -17,6 +17,12 @@ export interface AuthLayoutProps {
|
||||
onForgotPassword?:()=>void;
|
||||
item?: any;
|
||||
}
|
||||
export interface ButtonProps {
|
||||
children: React.ReactNode;
|
||||
onClick?: () => void;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export interface FormProps {
|
||||
label: string;
|
||||
value?: string;
|
||||
@@ -71,6 +77,26 @@ export interface StatusProgressProps {
|
||||
barColor?: string;
|
||||
}
|
||||
|
||||
|
||||
export interface NavigationTabsProps {
|
||||
tabs: string[];
|
||||
activeTab: string;
|
||||
onTabChange: (tab: string) => void;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
|
||||
export interface FilterItem {
|
||||
label: string;
|
||||
count?: number | string;
|
||||
}
|
||||
|
||||
export interface FilterTabsProps {
|
||||
options: FilterItem[];
|
||||
activeFilter: string;
|
||||
onChange: (label: string) => void;
|
||||
className?: string;
|
||||
}
|
||||
// For footer banner
|
||||
export interface InfoBannerProps {
|
||||
boldText?: string;
|
||||
|
||||
Reference in New Issue
Block a user