Skip to content

Commit 83e5083

Browse files
fixes type disclosure button error in navbar (vercel#9)
Fixes: vercel#4 Disclosure.Buttons appear to be used incorrectly here since they do not provide an onClick handler.
1 parent 6bf9454 commit 83e5083

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/navbar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,22 +179,22 @@ export default function Navbar({ user }: { user: any }) {
179179
</div>
180180
</div>
181181
<div className="mt-3 space-y-1">
182-
<Disclosure.Button
182+
<button
183183
onClick={() => signOut()}
184184
className="block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800"
185185
>
186186
Sign out
187-
</Disclosure.Button>
187+
</button>
188188
</div>
189189
</>
190190
) : (
191191
<div className="mt-3 space-y-1">
192-
<Disclosure.Button
192+
<button
193193
onClick={() => signIn('github')}
194194
className="flex w-full px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800"
195195
>
196196
Sign in
197-
</Disclosure.Button>
197+
</button>
198198
</div>
199199
)}
200200
</div>

0 commit comments

Comments
 (0)