Skip to content

Commit 5db4fbe

Browse files
authored
fix: Unused variable, import, function or class (#756)
* fix: Unused variable, import, function or class * Update tests/keyboard.spec.tsx
1 parent f437c40 commit 5db4fbe

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docs/examples/debug.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,7 @@ const MyInput = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTM
125125
MyInput.displayName = 'MyInput';
126126

127127
export default () => {
128-
const singleRef = React.useRef<PickerRef>(null);
129-
130128
const [value, setValue] = React.useState<Dayjs>(dayjs('2024-01-15'));
131-
const [rangeValue, setRangeValue] = React.useState<[Dayjs, Dayjs]>(
132-
[dayjs('2024-01-15'), dayjs('2024-03-01')],
133-
// null,
134-
// undefined,
135-
);
136-
137129
const setSingleValue = (nextVal: Dayjs) => {
138130
setValue(nextVal);
139131
};
@@ -149,7 +141,7 @@ export default () => {
149141
<RangePicker {...sharedLocale} open picker="time" style={{ width: 400 }} />
150142

151143
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 16 }}>
152-
{/* <PickerPanel
144+
<PickerPanel
153145
generateConfig={dayjsGenerateConfig}
154146
locale={zhCN}
155147
value={value}
@@ -158,7 +150,7 @@ export default () => {
158150
console.error('1');
159151
console.log('🎲 PanelValue Change:', panelValue, mode);
160152
}}
161-
/> */}
153+
/>
162154
</div>
163155
</div>
164156
);

0 commit comments

Comments
 (0)