Browse Source

Fix types

main
Dan Abramov 2 years ago
parent
commit
d0147dc5a9
  1. 2
      beta/src/components/Layout/Nav/Nav.tsx

2
beta/src/components/Layout/Nav/Nav.tsx

@ -187,7 +187,7 @@ export default function Nav() {
});
}, [showFeedback]);
function selectTab(nextTab) {
function selectTab(nextTab: 'learn' | 'apis' | 'home') {
setTab(nextTab);
scrollParentRef.current!.scrollTop = 0;
}

Loading…
Cancel
Save