feat: Implement Ratecard Drawer and Finance Table
This commit is contained in:
@@ -5,6 +5,7 @@ import ProjectViewMembers from '@/pages/projects/projectView/members/project-vie
|
||||
import ProjectViewUpdates from '@/pages/projects/project-view-1/updates/project-view-updates';
|
||||
import ProjectViewTaskList from '@/pages/projects/projectView/taskList/project-view-task-list';
|
||||
import ProjectViewBoard from '@/pages/projects/projectView/board/project-view-board';
|
||||
import ProjectViewFinance from '@/pages/projects/projectView/finance/project-view-finance';
|
||||
|
||||
// type of a tab items
|
||||
type TabItems = {
|
||||
@@ -67,4 +68,10 @@ export const tabItems: TabItems[] = [
|
||||
label: 'Updates',
|
||||
element: React.createElement(ProjectViewUpdates),
|
||||
},
|
||||
{
|
||||
index: 8,
|
||||
key: 'finance',
|
||||
label: 'Finance',
|
||||
element: React.createElement(ProjectViewFinance),
|
||||
},
|
||||
];
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
type FinanceTableColumnsType = {
|
||||
key: string;
|
||||
name: string;
|
||||
width: number;
|
||||
type: 'string' | 'hours' | 'currency';
|
||||
};
|
||||
|
||||
// finance table columns
|
||||
export const financeTableColumns: FinanceTableColumnsType[] = [
|
||||
{
|
||||
key: 'task',
|
||||
name: 'task',
|
||||
width: 240,
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
key: 'members',
|
||||
name: 'members',
|
||||
width: 160,
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
key: 'hours',
|
||||
name: 'hours',
|
||||
width: 80,
|
||||
type: 'hours',
|
||||
},
|
||||
{
|
||||
key: 'cost',
|
||||
name: 'cost',
|
||||
width: 120,
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'fixedCost',
|
||||
name: 'fixedCost',
|
||||
width: 120,
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'totalBudget',
|
||||
name: 'totalBudgetedCost',
|
||||
width: 120,
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'totalActual',
|
||||
name: 'totalActualCost',
|
||||
width: 120,
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'variance',
|
||||
name: 'variance',
|
||||
width: 120,
|
||||
type: 'currency',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user