From 99b3f7b648e22dd796d162989eb104039800c99d Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 8 Feb 2024 10:50:19 +0800 Subject: [PATCH 1/2] fix: Unused variable, import, function or class --- docs/examples/debug.tsx | 12 ++---------- tests/keyboard.spec.tsx | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/docs/examples/debug.tsx b/docs/examples/debug.tsx index d2e2fa478..c5e507bdf 100644 --- a/docs/examples/debug.tsx +++ b/docs/examples/debug.tsx @@ -125,15 +125,7 @@ const MyInput = React.forwardRef { - const singleRef = React.useRef(null); - const [value, setValue] = React.useState(dayjs('2024-01-15')); - const [rangeValue, setRangeValue] = React.useState<[Dayjs, Dayjs]>( - [dayjs('2024-01-15'), dayjs('2024-03-01')], - // null, - // undefined, - ); - const setSingleValue = (nextVal: Dayjs) => { setValue(nextVal); }; @@ -149,7 +141,7 @@ export default () => {
- {/* { console.error('1'); console.log('🎲 PanelValue Change:', panelValue, mode); }} - /> */} + />
); diff --git a/tests/keyboard.spec.tsx b/tests/keyboard.spec.tsx index e7a09648c..10320d7ac 100644 --- a/tests/keyboard.spec.tsx +++ b/tests/keyboard.spec.tsx @@ -130,7 +130,6 @@ describe('Picker.Keyboard', () => { }); }); - return; it('open to select', () => { const onChange = jest.fn(); const onSelect = jest.fn(); From f1afad934e6d307051466cb3f0b6b883d37a6947 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 8 Feb 2024 11:28:17 +0800 Subject: [PATCH 2/2] Update tests/keyboard.spec.tsx --- tests/keyboard.spec.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/keyboard.spec.tsx b/tests/keyboard.spec.tsx index 10320d7ac..e7a09648c 100644 --- a/tests/keyboard.spec.tsx +++ b/tests/keyboard.spec.tsx @@ -130,6 +130,7 @@ describe('Picker.Keyboard', () => { }); }); + return; it('open to select', () => { const onChange = jest.fn(); const onSelect = jest.fn();