mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
44 lines
925 B
TypeScript
44 lines
925 B
TypeScript
import React from 'react';
|
|
import intl from 'react-intl-universal';
|
|
import { AvatarCell, TimesheetAccessor } from './components';
|
|
|
|
/**
|
|
* Retrieve project timesheet list columns.
|
|
*/
|
|
export function useProjectTimesheetColumns() {
|
|
return React.useMemo(
|
|
() => [
|
|
{
|
|
id: 'avatar',
|
|
Header: '',
|
|
Cell: AvatarCell,
|
|
className: 'avatar',
|
|
width: 45,
|
|
disableResizing: true,
|
|
disableSortBy: true,
|
|
clickable: true,
|
|
},
|
|
{
|
|
id: 'name',
|
|
Header: 'Header',
|
|
accessor: TimesheetAccessor,
|
|
width: 100,
|
|
className: 'name',
|
|
clickable: true,
|
|
textOverview: true,
|
|
},
|
|
{
|
|
id: 'duration',
|
|
Header: '',
|
|
accessor: 'duration',
|
|
width: 100,
|
|
className: 'duration',
|
|
align: 'right',
|
|
clickable: true,
|
|
textOverview: true,
|
|
},
|
|
],
|
|
[],
|
|
);
|
|
}
|