[DOP-3497]: Refactor state

This commit is contained in:
branberry 2023-04-03 14:51:46 -05:00
parent 207c3a9780
commit 9c94d434b0

View File

@ -53,9 +53,10 @@ const VersionSelectorComponent = ({
const handleFocusChange = (event: React.KeyboardEvent<HTMLDivElement>) => { const handleFocusChange = (event: React.KeyboardEvent<HTMLDivElement>) => {
console.log(event.key); console.log(event.key);
}; };
// const handleArrowKeys = () => {};
return ( return (
<StyledWrapper ref={menuListRef}> <StyledWrapper ref={menuListRef} onKeyDown={event => console.log(event.currentTarget)}>
<StyledSelectWrapper> <StyledSelectWrapper>
<StyledLabel>Version Selector: v{active.apiVersion}</StyledLabel> <StyledLabel>Version Selector: v{active.apiVersion}</StyledLabel>
{description && <StyledDescription>{description}</StyledDescription>} {description && <StyledDescription>{description}</StyledDescription>}