fix case HotkeyScope to hotkeyScope (#1528)

This commit is contained in:
Charles Bochet
2023-09-09 18:22:53 -07:00
committed by GitHub
parent cfbeac9c56
commit 89fed80537
11 changed files with 35 additions and 35 deletions

View File

@ -72,7 +72,7 @@ const StyledViewName = styled.span`
export type ViewsDropdownButtonProps = {
defaultViewName: string;
HotkeyScope: ViewsHotkeyScope;
hotkeyScope: ViewsHotkeyScope;
onViewEditModeChange?: () => void;
onViewsChange?: (views: View[]) => void | Promise<void>;
onViewSelect?: (viewId: string) => void | Promise<void>;
@ -81,7 +81,7 @@ export type ViewsDropdownButtonProps = {
export const ViewsDropdownButton = ({
defaultViewName,
HotkeyScope,
hotkeyScope,
onViewEditModeChange,
onViewsChange,
onViewSelect,
@ -163,10 +163,10 @@ export const ViewsDropdownButton = ({
useEffect(() => {
isUnfolded
? setHotkeyScopeAndMemorizePreviousScope(HotkeyScope)
? setHotkeyScopeAndMemorizePreviousScope(hotkeyScope)
: goBackToPreviousHotkeyScope();
}, [
HotkeyScope,
hotkeyScope,
goBackToPreviousHotkeyScope,
isUnfolded,
setHotkeyScopeAndMemorizePreviousScope,
@ -189,7 +189,7 @@ export const ViewsDropdownButton = ({
isUnfolded={isUnfolded}
onIsUnfoldedChange={setIsUnfolded}
anchor="left"
HotkeyScope={HotkeyScope}
hotkeyScope={hotkeyScope}
menuWidth="auto"
>
<StyledDropdownMenuItemsContainer>