npx eslint src --quiet hatalar kontrol edildi
This commit is contained in:
parent
b87d7a94c8
commit
319afbcb13
16 changed files with 21 additions and 25 deletions
|
|
@ -3,7 +3,7 @@ import Drawer from '@/components/ui/Drawer'
|
|||
import SidePanelContent, { SidePanelContentProps } from './SidePanelContent'
|
||||
import CopyButton from '../ThemeConfigurator/CopyButton'
|
||||
import withHeaderItem from '@/utils/hoc/withHeaderItem'
|
||||
import { useStoreState, useStoreActions } from '@/store'
|
||||
import { useStoreActions, useStoreState } from '@/store'
|
||||
import type { CommonProps } from '@/proxy/common'
|
||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||
import { FcEngineering } from 'react-icons/fc'
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@ import {
|
|||
import { useStoreState } from '@/store'
|
||||
import useMenuActive from '@/utils/hooks/useMenuActive'
|
||||
import isEmpty from 'lodash/isEmpty'
|
||||
import React from 'react'
|
||||
import { useEffect } from 'react'
|
||||
import React, { useEffect } from 'react'
|
||||
import { FaQuestionCircle } from 'react-icons/fa'
|
||||
import { Link, useLocation } from 'react-router-dom'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {
|
||||
import React, {
|
||||
Children,
|
||||
cloneElement,
|
||||
forwardRef,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { createContext } from 'react'
|
||||
import React, { createContext } from 'react'
|
||||
|
||||
export type CheckboxValue = string | number
|
||||
export type CheckboxGroupValue = CheckboxValue[]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {
|
||||
import React, {
|
||||
forwardRef,
|
||||
useState,
|
||||
useRef,
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import type { CommonProps } from '../../@types/common'
|
|||
import type { MonthBaseProps } from './components/Month'
|
||||
import type { DayKeydownPayload } from './components/types'
|
||||
import type { RefObject } from 'react'
|
||||
import React from 'react'
|
||||
|
||||
export interface DateTableProps extends CommonProps, MonthBaseProps {
|
||||
dateViewCount: number
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {
|
||||
import React, {
|
||||
forwardRef,
|
||||
useState,
|
||||
useRef,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {
|
||||
import React, {
|
||||
forwardRef,
|
||||
useRef,
|
||||
useState,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useState, useEffect, useCallback, useMemo } from 'react'
|
||||
import React, { useState, useEffect, useCallback, useMemo } from 'react'
|
||||
import classNames from 'classnames'
|
||||
import { FaChevronCircleLeft, FaEllipsisH, FaChevronCircleRight } from 'react-icons/fa';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {
|
||||
import React, {
|
||||
forwardRef,
|
||||
useState,
|
||||
useCallback,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useState, useCallback, useRef, useEffect } from 'react'
|
||||
import React, { useState, useCallback, useRef, useEffect } from 'react'
|
||||
import useCallbackRef from './useCallbackRef'
|
||||
|
||||
type UseControllableStateParams<T> = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useEffect, useState } from 'react'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
|
||||
function useTimeOutMessage(
|
||||
interval = 3000,
|
||||
|
|
|
|||
|
|
@ -383,7 +383,7 @@ const OrganizationUnits = () => {
|
|||
}
|
||||
}
|
||||
|
||||
const Node = memo(({ node, style, dragHandle }: NodeRendererProps<any>) => {
|
||||
const Node = memo(function Node({ node, style, dragHandle }: NodeRendererProps<any>) {
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
|
|
|
|||
|
|
@ -604,7 +604,7 @@ const Grid = (props: GridProps) => {
|
|||
.map((f) => f.fieldName)
|
||||
const filteredData: any = {}
|
||||
for (const key of allowedFields) {
|
||||
if (e.data.hasOwnProperty(key) && key) {
|
||||
if (key && Object.prototype.hasOwnProperty.call(e.data, key)) {
|
||||
filteredData[key] = e.data[key]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useState } from 'react'
|
||||
import React, { useState } from 'react'
|
||||
import { GridExtraFilterState } from './Utils'
|
||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||
|
||||
|
|
|
|||
|
|
@ -149,19 +149,15 @@ export function pivotFieldConvertDataType(fieldDbType?: DataType): PivotGridData
|
|||
|
||||
export function setGridPanelColor(color: any) {
|
||||
//DataGrid icin
|
||||
const pnlGrid = document.getElementsByClassName(
|
||||
'dx-datagrid-header-panel',
|
||||
) as HTMLCollectionOf<HTMLElement>
|
||||
if (pnlGrid?.length) {
|
||||
pnlGrid[0].style.borderBottom = `3px solid ${color}`
|
||||
const pnlGrid = document.querySelector<HTMLElement>('.dx-datagrid-header-panel')
|
||||
if (pnlGrid) {
|
||||
pnlGrid.style.borderBottom = `3px solid ${color}`
|
||||
}
|
||||
|
||||
//TreeList icin
|
||||
const pnlTree = document.getElementsByClassName(
|
||||
'dx-treelist-header-panel',
|
||||
) as HTMLCollectionOf<HTMLElement>
|
||||
if (pnlTree?.length) {
|
||||
pnlTree[0].style.borderBottom = `3px solid ${color}`
|
||||
const pnlTree = document.querySelector<HTMLElement>('.dx-treelist-header-panel')
|
||||
if (pnlTree) {
|
||||
pnlTree.style.borderBottom = `3px solid ${color}`
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue