Skip to content

Commit

Permalink
fix: logout redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 committed Jan 23, 2024
1 parent 4d8ac1d commit 4692590
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/Base/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const MobileNavbar = ({
</div>
<div className="flex flex-shrink-0 border-t border-quaternary p-4">
<a
href="#"
href="/"
onClick={() => logout()}
className="px-4 font-iregular text-quinary"
>
Expand Down Expand Up @@ -152,7 +152,7 @@ export default function Dashboard({
))}
</nav>
<a
href="#"
href="/"
onClick={() => logout()}
className="px-4 font-iregular text-quinary"
>
Expand Down
10 changes: 6 additions & 4 deletions components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ export default function Layout({ title, description, children }: LayoutProps) {
</nav>
</div>

<button
<a
href="/"
onClick={() => logout()}
className="mt-4 w-full text-left font-iregular text-quinary"
>
Log out 👋
</button>
</a>
</aside>

{/* OPEN SIDEBAR ON MOBILE */}
Expand Down Expand Up @@ -190,12 +191,13 @@ function MobileNavbar({
</nav>
</div>

<button
<a
href="/"
onClick={onLogout}
className="w-full border-t border-quaternary pt-4 text-left font-iregular text-quinary"
>
Log out 👋
</button>
</a>
</aside>
</Transition.Child>
</Dialog.Panel>
Expand Down
2 changes: 1 addition & 1 deletion data/speakers.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"date": "2023/2/14",
"date": "2024/2/6",
"speakers": [
{
"id": "ricardorocha",
Expand Down

0 comments on commit 4692590

Please sign in to comment.