diff --git a/src/lib/components/Login/Login.svelte b/src/lib/components/Login.svelte similarity index 100% rename from src/lib/components/Login/Login.svelte rename to src/lib/components/Login.svelte diff --git a/src/lib/components/Recipies/LearnColor.svelte b/src/lib/components/Recipies/LearnColor.svelte deleted file mode 100644 index ca447b8..0000000 --- a/src/lib/components/Recipies/LearnColor.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - -
- I am the parent, this is my state: {$store.machine.state} -
-
diff --git a/src/lib/components/Recipies/LearnReady.svelte b/src/lib/components/Recipies/LearnReady.svelte deleted file mode 100644 index 3d6d860..0000000 --- a/src/lib/components/Recipies/LearnReady.svelte +++ /dev/null @@ -1,19 +0,0 @@ - - -
- i am the child and this is my state: {$store.machine.state} - -
diff --git a/src/lib/components/Recipies/machines/formMachine.ts b/src/lib/components/Recipies/machines/formMachine.ts deleted file mode 100644 index 9a47887..0000000 --- a/src/lib/components/Recipies/machines/formMachine.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { createMachine } from 'xstate'; - -export const formMachine = createMachine( - { - id: 'validation', - initial: 'notValidated', - context: { - isValidated: false - }, - states: { - notValidated: { - on: { - VALIDATE: { - target: 'isValidated', - actions: 'setValidated' - } - } - }, - isValidated: { - on: { - INVALIDATE: { - target: 'notValidated', - actions: 'setNotValidated' - } - } - } - } - }, - { - actions: { - setValidated: (context) => (context.isValidated = true), - setNotValidated: (context) => (context.isValidated = false) - } - } -); \ No newline at end of file diff --git a/src/lib/components/Recipies/oForm.svelte b/src/lib/components/Recipies/oForm.svelte deleted file mode 100644 index b2056c7..0000000 --- a/src/lib/components/Recipies/oForm.svelte +++ /dev/null @@ -1,185 +0,0 @@ - - -{#if isStoreLoaded} -
- {#if $successMessage} - - {:else} -
- {#each fields as field} -
- {#if $errors[field]} - {$errors[field]} - {:else} - - {/if} - - {#if field === 'about'} -