Skip to content

Commit

Permalink
fix: small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
NhongSun committed Dec 25, 2024
1 parent 26fb210 commit 30699ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Navbar } from './index.js'
const { Story } = defineMeta<Navbar>({
const { Story } = defineMeta<typeof Navbar>({
title: 'Organism/Navbar',
component: Navbar,
tags: ['autodocs'],
Expand All @@ -26,7 +26,7 @@
<Story
name="Desktop & Logged In"
parameters={{ viewport: { defaultViewport: 'tablet' } }}
args={{ isLoggedIn: true, name: 'testname testname' }}
args={{ isLoggedIn: true, name: 'Testname testname' }}
/>

<Story
Expand All @@ -37,5 +37,5 @@
<Story
name="Mobile & Loggin In"
parameters={{ viewport: { defaultViewport: 'mobile2' } }}
args={{ isLoggedIn: true, name: 'testname testname' }}
args={{ isLoggedIn: true, name: 'Testname testname' }}
/>
4 changes: 2 additions & 2 deletions packages/ui/src/components/organism/navbar/navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div
class=" h-20 py-3 px-5 md:py-3 lg:px-10 flex justify-between items-center z-50 border-b-2 border-surface-container-low"
>
<div class="flex flex-row gap-3 items-center">
<div class="flex flex-row gap-3 items-center xl:gap-6">
<a href="/">
<CUGetRegLogo class="w-24 h-8 lg:w-32 lg:h-10" />
</a>
Expand Down Expand Up @@ -88,7 +88,7 @@
{:else}
<!-- To be implemented: add real href in Button -->
<Button href="login" class="w-24 md:w-28"
><p class="font-light">เข้าสู่ระบบ</p></Button
><p class="font-medium text-button2">เข้าสู่ระบบ</p></Button
>
{/if}
<IconButton variant="ghost" class="md:hidden" onclick={toggleSideBar}>
Expand Down

0 comments on commit 30699ab

Please sign in to comment.