Skip to content

Commit

Permalink
Replace Org with SignIn button
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Mar 6, 2024
1 parent aac4380 commit a374735
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/components/MainLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { SidebarCollapse16, SidebarExpand16 } from "svelte-octicons";
import type { Writable } from "svelte/store";
import type { User } from "@/api/types";
import { SIGN_IN_URL } from "@/config/config";
export let modal: boolean = false;
export let basement: "left" | "right" | null = null;
Expand Down Expand Up @@ -66,7 +67,12 @@
</main>
<nav class="action right large" class:active={panel === "action"} id="action">
<header class="header">
<OrgMenu />
<SignedIn>
<OrgMenu />
<Button slot="signedOut" mode="primary" href={SIGN_IN_URL}
>Sign In</Button
>
</SignedIn>
<div class="small closePane">
<Button mode="ghost" on:click={closePanel}>
<SidebarCollapse16 />
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/common/SignedIn.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { getContext } from "svelte";
import type { Writable } from "svelte/store";
import type { User } from "@/api/types";
Expand Down

0 comments on commit a374735

Please sign in to comment.