From fae5c3fd08a74c7d21bf1290e03d8d367dc1ecca Mon Sep 17 00:00:00 2001 From: Th1nkK1D Date: Thu, 13 May 2021 17:54:13 +0700 Subject: [PATCH] Rename prop since Svelte have issue with kebab # https://github.com/sveltejs/svelte/issues/3852 --- .gitignore | 2 +- example/index.html | 2 +- src/components/navbar/navbar.stories.svelte | 11 +++++----- src/components/navbar/navbar.wc.svelte | 21 ++++++++++--------- src/components/sharer/sharer.stories.svelte | 3 ++- src/components/sharer/sharer.wc.svelte | 5 +++-- .../staging-banner.stories.svelte | 5 +++-- .../staging-banner/staging-banner.wc.svelte | 7 ++++--- 8 files changed, 31 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index d00c60d..8bc5267 100644 --- a/.gitignore +++ b/.gitignore @@ -108,5 +108,5 @@ storybook-static pnpm-lock.yaml # Built files -components +components/*.js assets \ No newline at end of file diff --git a/example/index.html b/example/index.html index 6dcadd9..a93f1c5 100644 --- a/example/index.html +++ b/example/index.html @@ -14,7 +14,7 @@ - + diff --git a/src/components/navbar/navbar.stories.svelte b/src/components/navbar/navbar.stories.svelte index bc9507b..38509d6 100644 --- a/src/components/navbar/navbar.stories.svelte +++ b/src/components/navbar/navbar.stories.svelte @@ -1,16 +1,17 @@ @@ -25,13 +26,13 @@ diff --git a/src/components/navbar/navbar.wc.svelte b/src/components/navbar/navbar.wc.svelte index 862c7ec..bf4d7ef 100644 --- a/src/components/navbar/navbar.wc.svelte +++ b/src/components/navbar/navbar.wc.svelte @@ -1,21 +1,22 @@
- {#if titleText} + {#if title} {/if}
diff --git a/src/components/sharer/sharer.stories.svelte b/src/components/sharer/sharer.stories.svelte index 61e6457..33ed2ee 100644 --- a/src/components/sharer/sharer.stories.svelte +++ b/src/components/sharer/sharer.stories.svelte @@ -1,6 +1,7 @@ diff --git a/src/components/sharer/sharer.wc.svelte b/src/components/sharer/sharer.wc.svelte index 64793ec..31890be 100644 --- a/src/components/sharer/sharer.wc.svelte +++ b/src/components/sharer/sharer.wc.svelte @@ -3,7 +3,7 @@
- {#if !hideLabel} + {#if !hidelabel}
Share
diff --git a/src/components/staging-banner/staging-banner.stories.svelte b/src/components/staging-banner/staging-banner.stories.svelte index 738196d..390cfb7 100644 --- a/src/components/staging-banner/staging-banner.stories.svelte +++ b/src/components/staging-banner/staging-banner.stories.svelte @@ -1,13 +1,14 @@ @@ -18,6 +19,6 @@ diff --git a/src/components/staging-banner/staging-banner.wc.svelte b/src/components/staging-banner/staging-banner.wc.svelte index 5e6e8c1..23b4656 100644 --- a/src/components/staging-banner/staging-banner.wc.svelte +++ b/src/components/staging-banner/staging-banner.wc.svelte @@ -1,7 +1,8 @@
@@ -26,10 +27,10 @@ คำเตือน เว็บไซต์นี้มีจุดประสงค์ในการทดสอบภายในทีม ELECT เท่านั้น อาจมีข้อมูลและการทำงานที่ไม่ถูกต้อง ทางทีมงานจะไม่รับผิดชอบข้อผิดพลาดใด ๆ ที่เกิดขึ้น - {#if productionUrl} + {#if productionurl} ท่านสามารถชมชิ้นงานจริงได้