Skip to content

Commit

Permalink
add create component
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed Apr 27, 2024
1 parent 427c9bc commit b16b948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/(admin)/admin/edit/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import LockerEdit from "./views/LockerEdit.svelte";
import UserEdit from "./views/UserEdit.svelte";
import CreateUser from "./views/CreateUser.svelte";
let selected = UserEdit;
Expand Down Expand Up @@ -76,7 +76,7 @@
<div class="top-menu">
<div class="dataselect-button" on:click={() => (selected = UserEdit)} class:data-active-button={selected === UserEdit}>Users</div>
<div class="dataselect-button" on:click={() => (selected = LockerEdit)} class:data-active-button={selected === LockerEdit}>Lockers</div>
<div class="dataselect-button" on:click={() => (selected = LockerEdit)} class:data-active-button={selected === LockerEdit}>Search</div>
<div class="dataselect-button" on:click={() => (selected = CreateUser)} class:data-active-button={selected === CreateUser}>+ Create</div>
</div>
<div class="sub-scroll">
<svelte:component this={selected}/>
Expand Down
Empty file.

0 comments on commit b16b948

Please sign in to comment.