From c1379ad0513bb64f67745087719c38ccc8e9bd7a Mon Sep 17 00:00:00 2001 From: Ella Date: Sun, 13 Feb 2022 12:50:21 +0200 Subject: [PATCH] fix: fix --- .../src/lib/file-picker/file-picker.stories.tsx | 13 ++++++++----- .../src/lib/file-picker/file-picker.tsx | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/react-components/src/lib/file-picker/file-picker.stories.tsx b/packages/react-components/src/lib/file-picker/file-picker.stories.tsx index 3c7df1e4..61d37f51 100644 --- a/packages/react-components/src/lib/file-picker/file-picker.stories.tsx +++ b/packages/react-components/src/lib/file-picker/file-picker.stories.tsx @@ -1,3 +1,6 @@ +/* eslint-disable @typescript-eslint/no-unsafe-assignment */ +/* eslint-disable @typescript-eslint/strict-boolean-expressions */ +/* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ import React, { useCallback, @@ -401,17 +404,17 @@ export const FilesSelection: Story = () => { ); const fileBrowserRef = useRef(null); - const getSelection = React.useCallback( + const logSelection = useCallback( (event: React.MouseEvent) => { event.preventDefault(); event.stopPropagation(); if (!fileBrowserRef.current) return; console.log(fileBrowserRef.current.getFileSelection()); }, - [files, fileBrowserRef] + [fileBrowserRef] ); - const randomizeSelection = React.useCallback( + const randomizeSelection = useCallback( (event: React.MouseEvent) => { event.preventDefault(); event.stopPropagation(); @@ -430,8 +433,8 @@ export const FilesSelection: Story = () => { - { theme?: FilePickerTheme; styles?: Record;