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 SidePanelContent, { SidePanelContentProps } from './SidePanelContent'
|
||||||
import CopyButton from '../ThemeConfigurator/CopyButton'
|
import CopyButton from '../ThemeConfigurator/CopyButton'
|
||||||
import withHeaderItem from '@/utils/hoc/withHeaderItem'
|
import withHeaderItem from '@/utils/hoc/withHeaderItem'
|
||||||
import { useStoreState, useStoreActions } from '@/store'
|
import { useStoreActions, useStoreState } from '@/store'
|
||||||
import type { CommonProps } from '@/proxy/common'
|
import type { CommonProps } from '@/proxy/common'
|
||||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
import { FcEngineering } from 'react-icons/fc'
|
import { FcEngineering } from 'react-icons/fc'
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,7 @@ import {
|
||||||
import { useStoreState } from '@/store'
|
import { useStoreState } from '@/store'
|
||||||
import useMenuActive from '@/utils/hooks/useMenuActive'
|
import useMenuActive from '@/utils/hooks/useMenuActive'
|
||||||
import isEmpty from 'lodash/isEmpty'
|
import isEmpty from 'lodash/isEmpty'
|
||||||
import React from 'react'
|
import React, { useEffect } from 'react'
|
||||||
import { useEffect } from 'react'
|
|
||||||
import { FaQuestionCircle } from 'react-icons/fa'
|
import { FaQuestionCircle } from 'react-icons/fa'
|
||||||
import { Link, useLocation } from 'react-router-dom'
|
import { Link, useLocation } from 'react-router-dom'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {
|
import React, {
|
||||||
Children,
|
Children,
|
||||||
cloneElement,
|
cloneElement,
|
||||||
forwardRef,
|
forwardRef,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { createContext } from 'react'
|
import React, { createContext } from 'react'
|
||||||
|
|
||||||
export type CheckboxValue = string | number
|
export type CheckboxValue = string | number
|
||||||
export type CheckboxGroupValue = CheckboxValue[]
|
export type CheckboxGroupValue = CheckboxValue[]
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {
|
import React, {
|
||||||
forwardRef,
|
forwardRef,
|
||||||
useState,
|
useState,
|
||||||
useRef,
|
useRef,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import type { CommonProps } from '../../@types/common'
|
||||||
import type { MonthBaseProps } from './components/Month'
|
import type { MonthBaseProps } from './components/Month'
|
||||||
import type { DayKeydownPayload } from './components/types'
|
import type { DayKeydownPayload } from './components/types'
|
||||||
import type { RefObject } from 'react'
|
import type { RefObject } from 'react'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
export interface DateTableProps extends CommonProps, MonthBaseProps {
|
export interface DateTableProps extends CommonProps, MonthBaseProps {
|
||||||
dateViewCount: number
|
dateViewCount: number
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {
|
import React, {
|
||||||
forwardRef,
|
forwardRef,
|
||||||
useState,
|
useState,
|
||||||
useRef,
|
useRef,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {
|
import React, {
|
||||||
forwardRef,
|
forwardRef,
|
||||||
useRef,
|
useRef,
|
||||||
useState,
|
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 classNames from 'classnames'
|
||||||
import { FaChevronCircleLeft, FaEllipsisH, FaChevronCircleRight } from 'react-icons/fa';
|
import { FaChevronCircleLeft, FaEllipsisH, FaChevronCircleRight } from 'react-icons/fa';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {
|
import React, {
|
||||||
forwardRef,
|
forwardRef,
|
||||||
useState,
|
useState,
|
||||||
useCallback,
|
useCallback,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { useState, useCallback, useRef, useEffect } from 'react'
|
import React, { useState, useCallback, useRef, useEffect } from 'react'
|
||||||
import useCallbackRef from './useCallbackRef'
|
import useCallbackRef from './useCallbackRef'
|
||||||
|
|
||||||
type UseControllableStateParams<T> = {
|
type UseControllableStateParams<T> = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { useEffect, useState } from 'react'
|
import React, { useEffect, useState } from 'react'
|
||||||
|
|
||||||
function useTimeOutMessage(
|
function useTimeOutMessage(
|
||||||
interval = 3000,
|
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 (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
|
|
|
||||||
|
|
@ -604,7 +604,7 @@ const Grid = (props: GridProps) => {
|
||||||
.map((f) => f.fieldName)
|
.map((f) => f.fieldName)
|
||||||
const filteredData: any = {}
|
const filteredData: any = {}
|
||||||
for (const key of allowedFields) {
|
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]
|
filteredData[key] = e.data[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
import { GridExtraFilterState } from './Utils'
|
import { GridExtraFilterState } from './Utils'
|
||||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -149,19 +149,15 @@ export function pivotFieldConvertDataType(fieldDbType?: DataType): PivotGridData
|
||||||
|
|
||||||
export function setGridPanelColor(color: any) {
|
export function setGridPanelColor(color: any) {
|
||||||
//DataGrid icin
|
//DataGrid icin
|
||||||
const pnlGrid = document.getElementsByClassName(
|
const pnlGrid = document.querySelector<HTMLElement>('.dx-datagrid-header-panel')
|
||||||
'dx-datagrid-header-panel',
|
if (pnlGrid) {
|
||||||
) as HTMLCollectionOf<HTMLElement>
|
pnlGrid.style.borderBottom = `3px solid ${color}`
|
||||||
if (pnlGrid?.length) {
|
|
||||||
pnlGrid[0].style.borderBottom = `3px solid ${color}`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//TreeList icin
|
//TreeList icin
|
||||||
const pnlTree = document.getElementsByClassName(
|
const pnlTree = document.querySelector<HTMLElement>('.dx-treelist-header-panel')
|
||||||
'dx-treelist-header-panel',
|
if (pnlTree) {
|
||||||
) as HTMLCollectionOf<HTMLElement>
|
pnlTree.style.borderBottom = `3px solid ${color}`
|
||||||
if (pnlTree?.length) {
|
|
||||||
pnlTree[0].style.borderBottom = `3px solid ${color}`
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue