npx eslint src --quiet hatalar kontrol edildi

This commit is contained in:
Sedat ÖZTÜRK 2026-07-17 12:47:00 +03:00
parent b87d7a94c8
commit 319afbcb13
16 changed files with 21 additions and 25 deletions

View file

@ -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'

View file

@ -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'

View file

@ -1,4 +1,4 @@
import {
import React, {
Children,
cloneElement,
forwardRef,

View file

@ -1,4 +1,4 @@
import { createContext } from 'react'
import React, { createContext } from 'react'
export type CheckboxValue = string | number
export type CheckboxGroupValue = CheckboxValue[]

View file

@ -1,4 +1,4 @@
import {
import React, {
forwardRef,
useState,
useRef,

View file

@ -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

View file

@ -1,4 +1,4 @@
import {
import React, {
forwardRef,
useState,
useRef,

View file

@ -1,4 +1,4 @@
import {
import React, {
forwardRef,
useRef,
useState,

View file

@ -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';

View file

@ -1,4 +1,4 @@
import {
import React, {
forwardRef,
useState,
useCallback,

View file

@ -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> = {

View file

@ -1,4 +1,4 @@
import { useEffect, useState } from 'react'
import React, { useEffect, useState } from 'react'
function useTimeOutMessage(
interval = 3000,

View file

@ -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(

View file

@ -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]
}
}

View file

@ -1,4 +1,4 @@
import { useState } from 'react'
import React, { useState } from 'react'
import { GridExtraFilterState } from './Utils'
import { useLocalization } from '@/utils/hooks/useLocalization'

View file

@ -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}`
}
}