time tracking
This commit is contained in:
@@ -68,7 +68,6 @@ const ServiceWithPriceInput: FC<Props> = ({
|
|||||||
serviceProps.onChange(service);
|
serviceProps.onChange(service);
|
||||||
}, [service]);
|
}, [service]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('first render')
|
|
||||||
isFirstRender.current = false;
|
isFirstRender.current = false;
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ const EmployeeTableModal = ({
|
|||||||
innerProps
|
innerProps
|
||||||
}: ContextModalProps<Props>) => {
|
}: ContextModalProps<Props>) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log("Effect from table modal");
|
|
||||||
console.log(innerProps.items);
|
|
||||||
}, [innerProps.items.current])
|
}, [innerProps.items.current])
|
||||||
return (
|
return (
|
||||||
<Flex direction={"column"} gap={rem(10)}>
|
<Flex direction={"column"} gap={rem(10)}>
|
||||||
|
|||||||
@@ -61,14 +61,11 @@ const useWorkTableColumns = ({month, onUpdate, data}: Props) => {
|
|||||||
{
|
{
|
||||||
header: "Всего часов",
|
header: "Всего часов",
|
||||||
Cell: ({row}) => {
|
Cell: ({row}) => {
|
||||||
const v = Object.entries(row.original).reduce((acc, [key, value]) => {
|
return Object.entries(row.original).reduce((acc, [key, value]) => {
|
||||||
if (isNaN(parseInt(key)) || !isNumber(value)) return acc;
|
if (isNaN(parseInt(key)) || !isNumber(value)) return acc;
|
||||||
console.log("dobro")
|
|
||||||
acc += value;
|
acc += value;
|
||||||
return acc;
|
return acc;
|
||||||
}, 0);
|
}, 0);
|
||||||
console.log(`V: ${v}`)
|
|
||||||
return v;
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ const AddDealProductModal = ({
|
|||||||
services: validateServices
|
services: validateServices
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log(form.values);
|
|
||||||
|
|
||||||
const onClose = () => {
|
const onClose = () => {
|
||||||
context.closeContextModal(id);
|
context.closeContextModal(id);
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ const ProductServiceFormModal = ({
|
|||||||
const onClose = () => {
|
const onClose = () => {
|
||||||
context.closeContextModal(id);
|
context.closeContextModal(id);
|
||||||
}
|
}
|
||||||
console.log(innerProps)
|
|
||||||
return (
|
return (
|
||||||
<BaseFormModal
|
<BaseFormModal
|
||||||
{...innerProps}
|
{...innerProps}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ export const Route = createLazyFileRoute('/test')({
|
|||||||
function TestPage() {
|
function TestPage() {
|
||||||
const [value, setValue] = useState(0);
|
const [value, setValue] = useState(0);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(`effect: ${value}`)
|
|
||||||
}, [value]);
|
}, [value]);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user