Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Dec 17, 2023
2 parents c8ba8f2 + 4a98ab4 commit 9855eb2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/navigational/topBar/TopBar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"use client";

import Button from "@/components/actions/button/Button";
import SignOut from "@/components/actions/signOut/SignOut";
import Avatar from "@/components/dataDisplay/avatar/Avatar";
import { ProfileViewDetailed } from "@atproto/api/dist/client/types/app/bsky/actor/defs";
Expand All @@ -19,7 +22,12 @@ export default function TopBar(props: Props) {
>
<Avatar profile={profile} size="sm" />
</Link>
<Image src="/logo.svg" alt="Ouranos logo" width={100} height={100} />
<Button
onClick={() => window.scrollTo({ top: 0, behavior: "smooth" })}
className="inline"
>
<Image src="/logo.svg" alt="Ouranos logo" width={100} height={100} />
</Button>
<SignOut iconOnly={true} />
</div>
);
Expand Down

0 comments on commit 9855eb2

Please sign in to comment.