diff --git a/docs/src/pages/components/autocomplete/Virtualize.js b/docs/src/pages/components/autocomplete/Virtualize.js index ae4a50e42e6bf5..8a46534e5b4079 100644 --- a/docs/src/pages/components/autocomplete/Virtualize.js +++ b/docs/src/pages/components/autocomplete/Virtualize.js @@ -20,10 +20,10 @@ function renderRow(props) { }); } -const outerElementPropsContext = React.createContext({}); +const OuterElementContext = React.createContext({}); const OuterElementType = React.forwardRef((props, ref) => { - const outerProps = React.useContext(outerElementPropsContext); + const outerProps = React.useContext(OuterElementContext); return
; }); @@ -53,7 +53,7 @@ const ListboxComponent = React.forwardRef(function ListboxComponent(props, ref) return (
- + {renderRow} - +
); }); diff --git a/docs/src/pages/components/autocomplete/Virtualize.tsx b/docs/src/pages/components/autocomplete/Virtualize.tsx index cbdd07e7ebefc1..17cd5e086d46a8 100644 --- a/docs/src/pages/components/autocomplete/Virtualize.tsx +++ b/docs/src/pages/components/autocomplete/Virtualize.tsx @@ -19,10 +19,10 @@ function renderRow(props: ListChildComponentProps) { }); } -const outerElementPropsContext = React.createContext({}); +const OuterElementContext = React.createContext({}); const OuterElementType = React.forwardRef((props, ref) => { - const outerProps = React.useContext(outerElementPropsContext); + const outerProps = React.useContext(OuterElementContext); return
; }); @@ -52,7 +52,7 @@ const ListboxComponent = React.forwardRef(function ListboxCompon return (
- + (function ListboxCompon > {renderRow} - +
); });