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