From d0147dc5a91dd9e0a1beaf0946f875c6c723f703 Mon Sep 17 00:00:00 2001
From: Dan Abramov <dan.abramov@gmail.com>
Date: Sat, 10 Sep 2022 07:15:51 +0100
Subject: [PATCH] Fix types

---
 beta/src/components/Layout/Nav/Nav.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/beta/src/components/Layout/Nav/Nav.tsx b/beta/src/components/Layout/Nav/Nav.tsx
index 60eabc24..633f0364 100644
--- a/beta/src/components/Layout/Nav/Nav.tsx
+++ b/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;
   }