Skip to content

Commit

Permalink
Uppercase convention
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 12, 2019
1 parent 8916933 commit 62f22b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/src/pages/components/autocomplete/Virtualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div ref={ref} {...props} {...outerProps} />;
});

Expand Down Expand Up @@ -53,7 +53,7 @@ const ListboxComponent = React.forwardRef(function ListboxComponent(props, ref)

return (
<div ref={ref}>
<outerElementPropsContext.Provider value={other}>
<OuterElementContext.Provider value={other}>
<VariableSizeList
itemData={itemData}
height={getHeight() + 2 * LISTBOX_PADDING}
Expand All @@ -67,7 +67,7 @@ const ListboxComponent = React.forwardRef(function ListboxComponent(props, ref)
>
{renderRow}
</VariableSizeList>
</outerElementPropsContext.Provider>
</OuterElementContext.Provider>
</div>
);
});
Expand Down
8 changes: 4 additions & 4 deletions docs/src/pages/components/autocomplete/Virtualize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ function renderRow(props: ListChildComponentProps) {
});
}

const outerElementPropsContext = React.createContext({});
const OuterElementContext = React.createContext({});

const OuterElementType = React.forwardRef<HTMLDivElement>((props, ref) => {
const outerProps = React.useContext(outerElementPropsContext);
const outerProps = React.useContext(OuterElementContext);
return <div ref={ref} {...props} {...outerProps} />;
});

Expand Down Expand Up @@ -52,7 +52,7 @@ const ListboxComponent = React.forwardRef<HTMLDivElement>(function ListboxCompon

return (
<div ref={ref}>
<outerElementPropsContext.Provider value={other}>
<OuterElementContext.Provider value={other}>
<VariableSizeList
itemData={itemData}
height={getHeight() + 2 * LISTBOX_PADDING}
Expand All @@ -66,7 +66,7 @@ const ListboxComponent = React.forwardRef<HTMLDivElement>(function ListboxCompon
>
{renderRow}
</VariableSizeList>
</outerElementPropsContext.Provider>
</OuterElementContext.Provider>
</div>
);
});
Expand Down

0 comments on commit 62f22b6

Please sign in to comment.