File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/compass-components/src/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export const FileInputBackendContext = createContext<
168168
169169// This hook is to create a new instance of the file input
170170// backend provided by the context.
171- function useFileSystemBackend ( ) {
171+ function useFileInputBackend ( ) {
172172 const fileInputBackendContext = useContext ( FileInputBackendContext ) ;
173173
174174 const fileInputBackend = useRef < null | FileInputBackend > (
@@ -362,14 +362,14 @@ function FileInput({
362362 // To make components of Compass environment agnostic
363363 // (electron, browser, VSCode Webview), we use a backend context so that
364364 // the different environments can supply their own file system backends.
365- const backend = useFileSystemBackend ( ) ;
365+ const backend = useFileInputBackend ( ) ;
366366
367367 const buttonText = React . useMemo ( ( ) => {
368368 if ( Array . isArray ( values ) && values . length > 0 ) {
369369 return values . map ( ( file ) => path . basename ( file ) ) . join ( ', ' ) ;
370370 }
371371
372- return multi ? 'Select files... ' : 'Select a file... ' ;
372+ return multi ? 'Select files… ' : 'Select a file… ' ;
373373 } , [ values , multi ] ) ;
374374
375375 const onFilesChanged = React . useCallback (
You can’t perform that action at this time.
0 commit comments