Skip to content

Commit 9a5ea2e

Browse files
committed
triavial. Patch for eslint and prettier
1 parent 2957065 commit 9a5ea2e

File tree

9 files changed

+16
-22
lines changed

9 files changed

+16
-22
lines changed

src/components/data-container/tab-box/TTabBoxContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import {createContext} from 'react';
44

55
import type {TTabBoxValue} from '@/components';
66

7-
type tabBoxContext = {
7+
type tabBoxContextType = {
88
activeTab: TTabBoxValue;
99
onChangeActiveTab: (activeTab: TTabBoxValue) => void;
1010
};
1111

12-
export const tabBoxContext = createContext<tabBoxContext>({
12+
export const tabBoxContext = createContext<tabBoxContextType>({
1313
activeTab: 0,
1414
onChangeActiveTab: null,
1515
});

src/components/input/date-picker/TDatePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const TDatePicker = forwardRef(
115115

116116
dropHolderRef.current?.close();
117117
},
118-
[props.onChange]
118+
[props]
119119
);
120120

121121
const clearDate = useCallback(() => {

src/components/input/date-picker/selector/TMonthSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const TMonthSelector = () => {
104104
onChangeValue(dateStr);
105105
}
106106
},
107-
[viewMode, displayDateObject, onChangeValue]
107+
[displayDateObject.year, viewMode, validDateRange, setDisplayDateObject, changeViewMode, onChangeValue]
108108
);
109109

110110
const onMoveMonth = useCallback((move: 'next' | 'prev') => {

src/components/input/date-picker/selector/TYearSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const TYearSelector = () => {
8585
onChangeValue(clickedYear?.toString());
8686
}
8787
},
88-
[onChangeValue]
88+
[changeViewMode, onChangeValue, setDisplayDateObject, validDateRange, viewMode]
8989
);
9090

9191
const onMoveYear = useCallback((move: 'next' | 'prev') => {

stories/components/data-container/step-box/TStepBox.stories.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import type {Meta, StoryObj} from '@storybook/react';
2-
import React, {useRef, useState} from 'react';
2+
import React, {useState} from 'react';
33

4-
import {TTextFieldRef} from '@/components';
5-
import StackCreateCspStep from './StackCreateCspStep';
6-
7-
import TButton from '~/button/button/TButton';
84
import TStepBox from '~/data-container/step-box/TStepBox';
95
import TStepBoxItem from '~/data-container/step-box/TStepBoxItem';
106

stories/components/input/date-picker/TDatePicker.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import type {Meta, StoryObj} from '@storybook/react';
22
import type {ReactNode} from 'react';
3-
import React, {useRef} from 'react';
3+
import React from 'react';
44

55
import useInputState from '@/common/hook/UseInputState';
66

77
import type {TDatePickerProps} from '~/input/date-picker';
8-
import {TDatePickerRef} from '~/input/date-picker';
98
import TDatePicker from '~/input/date-picker/TDatePicker';
109

1110
const meta: Meta<typeof TDatePicker> = {

stories/components/input/switch/TSwitch.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {Meta, StoryObj} from '@storybook/react';
2-
import {Decorator} from '@storybook/react';
32

43
import useInputState from '@/common/hook/UseInputState';
54
import TSwitch from '@/components/input/switch/TSwitch';

tests/unit/react/tks/component/input/checkbox/TCheckbox.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ describe('TCheckbox', () => {
586586
<TCheckbox
587587
value={true}
588588
negativeValue={testNegativeValue}
589-
onChange={(negative, positive) => {
589+
onChange={(negative) => {
590590
testData = negative;
591591
}}
592592
>

tsconfig.node.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"compilerOptions": {
3-
"composite": true,
4-
"skipLibCheck": true,
5-
"module": "ESNext",
6-
"moduleResolution": "bundler",
7-
"allowSyntheticDefaultImports": true
8-
},
9-
"include": ["vite.config.mts"]
2+
"compilerOptions": {
3+
"composite": true,
4+
"skipLibCheck": true,
5+
"module": "ESNext",
6+
"moduleResolution": "bundler",
7+
"allowSyntheticDefaultImports": true
8+
},
9+
"include": ["vite.config.mts"]
1010
}

0 commit comments

Comments
 (0)