mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix: add ignore Ts errors to project billable
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import * as Yup from 'yup';
|
||||
import intl from 'react-intl-universal';
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import React from 'react';
|
||||
import intl from 'react-intl-universal';
|
||||
import { Formik } from 'formik';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import React from 'react';
|
||||
import { Form } from 'formik';
|
||||
import ProjectBillableEntriesFormFields from './ProjectBillableEntriesFormFields';
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import { ProjectBillableEntriesFormProvider } from './ProjectBillableEntriesFormProvider';
|
||||
import ProjectBillableEntriesForm from './ProjectBillableEntriesForm';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import React from 'react';
|
||||
import { useFormikContext } from 'formik';
|
||||
import { Classes } from '@blueprintjs/core';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { useFormikContext } from 'formik';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import React from 'react';
|
||||
import { useProjectBillableEntries } from '../../hooks';
|
||||
import { DialogContent } from '@/components';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import React from 'react';
|
||||
import { Button } from '@blueprintjs/core';
|
||||
import intl from 'react-intl-universal';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { Dialog, DialogSuspense, FormattedMessage as T } from '@/components';
|
||||
|
||||
@@ -87,6 +87,7 @@ const ProjectTimesheetDataTable = styled(DataTable)`
|
||||
|
||||
.tbody {
|
||||
.tr .td {
|
||||
padding: 0.4rem 0.8rem;
|
||||
}
|
||||
|
||||
.avatar.td {
|
||||
|
||||
@@ -35,7 +35,7 @@ export function ActionsMenu({
|
||||
*/
|
||||
export const AvatarCell = ({ row: { original }, size }) => (
|
||||
<span className="avatar" data-size={size}>
|
||||
{firstLettersArgs(original?.display_name, original?.name)}
|
||||
{firstLettersArgs(original?.display_name, original?.task_name)}
|
||||
</span>
|
||||
);
|
||||
|
||||
@@ -46,11 +46,13 @@ export const TimesheetAccessor = (timesheet) => (
|
||||
<React.Fragment>
|
||||
<TimesheetHeader>
|
||||
<TimesheetTitle>{timesheet.display_name}</TimesheetTitle>
|
||||
<TimesheetSubTitle>{timesheet.name}</TimesheetSubTitle>
|
||||
<TimesheetSubTitle>{timesheet.task_name}</TimesheetSubTitle>
|
||||
</TimesheetHeader>
|
||||
<TimesheetContent>
|
||||
<FormatDate value={timesheet.date} />
|
||||
<TimesheetDescription>{timesheet.description}</TimesheetDescription>
|
||||
{timesheet.description && (
|
||||
<TimesheetDescription>{timesheet.description}</TimesheetDescription>
|
||||
)}
|
||||
</TimesheetContent>
|
||||
</React.Fragment>
|
||||
);
|
||||
|
||||
@@ -32,7 +32,7 @@ export function useProjectTimesheetColumns() {
|
||||
id: 'duration',
|
||||
Header: '',
|
||||
accessor: 'duration',
|
||||
width: 120,
|
||||
width: 150,
|
||||
className: 'duration',
|
||||
align: 'right',
|
||||
clickable: true,
|
||||
|
||||
@@ -15,13 +15,13 @@ export function EstimateAmount({ baseCurrency }) {
|
||||
<EstimatedAmountBase>
|
||||
<EstimatedAmountContent>
|
||||
<Choose>
|
||||
<Choose.When condition={values?.charge_type === 'hourly_rate'}>
|
||||
<Choose.When condition={values?.charge_type === 'TIME'}>
|
||||
<T id={'project_task.dialog.estimated_amount'} />
|
||||
<EstimatedAmount>
|
||||
<Money amount={estimatedAmount} currency={baseCurrency} />
|
||||
</EstimatedAmount>
|
||||
</Choose.When>
|
||||
<Choose.When condition={values?.charge_type === 'fixed_price'}>
|
||||
<Choose.When condition={values?.charge_type === 'FIXED'}>
|
||||
<T id={'project_task.dialog.total'} />
|
||||
<EstimatedAmount>
|
||||
<Money amount={values.rate} currency={baseCurrency} />
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
import intl from 'react-intl-universal';
|
||||
|
||||
export const taskChargeOptions = [
|
||||
{ name: intl.get('project_task.dialog.hourly_rate'), value: 'time' },
|
||||
{ name: intl.get('project_task.dialog.fixed_price'), value: 'fixed' },
|
||||
{ name: intl.get('project_task.dialog.non_chargeable'), value: 'non_chargable' },
|
||||
{ name: intl.get('project_task.dialog.hourly_rate'), value: 'TIME' },
|
||||
{ name: intl.get('project_task.dialog.fixed_price'), value: 'FIXED' },
|
||||
{ name: intl.get('project_task.dialog.non_chargeable'), value: 'NON_CHARGABLE' },
|
||||
];
|
||||
|
||||
export const expenseChargeOption = [
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import { useRequestQuery } from '@/hooks/useQueryRequest';
|
||||
import t from './type';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user