diff --git a/.routify/config.js b/.routify/config.js index 4e6b6fc5..d2b5bcd3 100644 --- a/.routify/config.js +++ b/.routify/config.js @@ -8,5 +8,5 @@ module.exports = { noHashScroll: false, distDir: 'dist', extensions: ['svelte', 'html', 'svx', 'md'], - started: '2021-03-13T19:43:58.513Z', + started: '2021-03-13T19:53:15.239Z', }; diff --git a/.routify/routes.js b/.routify/routes.js index 36874b56..8a015289 100644 --- a/.routify/routes.js +++ b/.routify/routes.js @@ -1,10 +1,10 @@ /** * @roxi/routify 2.7.3 - * File generated Sat Mar 13 2021 19:44:00 GMT+0000 (Greenwich Mean Time) + * File generated Sat Mar 13 2021 19:53:16 GMT+0000 (Greenwich Mean Time) */ export const __version = '2.7.3'; -export const __timestamp = '2021-03-13T19:44:00.017Z'; +export const __timestamp = '2021-03-13T19:53:16.741Z'; //buildRoutes import { buildClientTree } from '@roxi/routify/runtime/buildRoutes'; diff --git a/README.md b/README.md index b5a8d1ac..883868d2 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ Travis CI handles the deployment pipeline deploying when a commit on master is t - [ ] figure out variants/ multi choice products - [ ] classes - [ ] testing -- [ ] style the site - [ ] storybook +- [ ] style the site - [ ] use prod stripe api key - [ ] promotions diff --git a/src/components/CategoryView/CategoryView.svelte b/src/components/CategoryView/CategoryView.svelte index 709c6205..b2f310d3 100644 --- a/src/components/CategoryView/CategoryView.svelte +++ b/src/components/CategoryView/CategoryView.svelte @@ -19,19 +19,19 @@ }; onMount(async () => { - if (!($categories.hasOwnProperty('Id') && $categories.Id !== '')) { - refreshSetCategories(categoryId); + if ($categories.hasOwnProperty('Id') && $categories.Id === '') { + await refreshSetCategories(categoryId); } }); $: refreshSetCategories(categoryId); -{#if $categories.hasOwnProperty('Id') || $categories.Id !== ''} +{#if $categories.hasOwnProperty('Id') && $categories.Id !== ''} {#if $categories.Id !== JEWELLERY_CATEGORY}

{$categories.Id}

{$categories.Name}

- {#if $categories.Children.length > 0} + {#if $categories.Children && $categories.Children.length > 0} {#each $categories.Children as cat} {/each} diff --git a/src/components/LoadingSpinner/LoadingSpinner.svelte b/src/components/LoadingSpinner/LoadingSpinner.svelte index b1d021e6..b9589636 100644 --- a/src/components/LoadingSpinner/LoadingSpinner.svelte +++ b/src/components/LoadingSpinner/LoadingSpinner.svelte @@ -2,15 +2,15 @@ .lds-ring { display: inline-block; position: relative; - width: 80px; - height: 80px; + width: 30px; + height: 30px; } .lds-ring div { box-sizing: border-box; display: block; position: absolute; - width: 64px; - height: 64px; + width: 34px; + height: 34px; margin: 8px; border: 8px solid black; border-radius: 50%; diff --git a/src/components/SearchProducts/SearchProducts.svelte b/src/components/SearchProducts/SearchProducts.svelte index 90014216..8e693965 100644 --- a/src/components/SearchProducts/SearchProducts.svelte +++ b/src/components/SearchProducts/SearchProducts.svelte @@ -1,11 +1,11 @@