Skip to content

Commit 84605bb

Browse files
committed
chore(compass-components): small editorial fixes for FileInput
Use Unicode ellipses and use consistent language for the FileInputBackendContext wrappers.
1 parent f4eea7b commit 84605bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/compass-components/src/components/file-input.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)