Skip to content

Commit

Permalink
Prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
asgvard committed Sep 11, 2023
1 parent b78cdec commit b00e31e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/SpatialNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,8 @@ class SpatialNavigationService {
* the Focusable Containers, that have "forceFocus" flag enabled.
*/
if (!fromParentFocusKey && !currentComponent) {
this.setFocus(this.getForcedFocusKey());
return;
this.setFocus(this.getForcedFocusKey());
return;
}

this.log(
Expand Down Expand Up @@ -1058,7 +1058,7 @@ class SpatialNavigationService {
*/
const sortedForceFocusableComponents = this.sortSiblingsByPriority(
forceFocusableComponents,
{ x:0, y:0, width:0, height: 0, left: 0, top:0, node: null },
{ x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, node: null },
'down',
ROOT_FOCUS_KEY
);
Expand Down
2 changes: 1 addition & 1 deletion src/useFocusContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useContext, createContext } from 'react';
import { ROOT_FOCUS_KEY } from './SpatialNavigation';

export const FocusContext = createContext(ROOT_FOCUS_KEY);
FocusContext.displayName = "FocusContext";
FocusContext.displayName = 'FocusContext';

/** @internal */
export const useFocusContext = () => useContext(FocusContext);

0 comments on commit b00e31e

Please sign in to comment.