Skip to content

Commit 51d27cc

Browse files
committed
rename
1 parent ba8e2a4 commit 51d27cc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

site/src/components/SearchField/SearchField.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const Empty: Story = {};
2222

2323
export const Focused: Story = {
2424
args: {
25-
autoFocused: true,
25+
autoFocus: true,
2626
},
2727
};
2828

site/src/components/SearchField/SearchField.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ import { type FC, useEffect, useRef } from "react";
1010

1111
export type SearchFieldProps = Omit<TextFieldProps, "onChange"> & {
1212
onChange: (query: string) => void;
13-
autoFocused?: boolean;
13+
autoFocus?: boolean;
1414
};
1515

1616
export const SearchField: FC<SearchFieldProps> = ({
1717
value = "",
1818
onChange,
19-
autoFocused = false,
19+
autoFocus = false,
2020
InputProps,
2121
...textFieldProps
2222
}) => {
2323
const theme = useTheme();
2424
const inputRef = useRef<HTMLInputElement>(null);
2525

26-
if (autoFocused) {
26+
if (autoFocus) {
2727
useEffect(() => {
2828
inputRef.current?.focus();
2929
});

site/src/pages/WorkspacesPage/WorkspacesButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const WorkspacesButton: FC<WorkspacesButtonProps> = ({
6969
>
7070
<MenuSearch
7171
value={searchTerm}
72-
autoFocused={true}
72+
autoFocus={true}
7373
onChange={setSearchTerm}
7474
placeholder="Type/select a workspace template"
7575
aria-label="Template select for workspace"

0 commit comments

Comments
 (0)