From 27c3e6c9e9f8ded607a6b3155f13ac4b7374e447 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 2 Oct 2020 20:41:21 +0100 Subject: [PATCH] Replace all usages of simple-modal with new modal --- packages/builder/package.json | 1 - .../src/components/common/Modal/Modal.svelte | 15 ++-- .../components/start/CreateAppModal.svelte | 21 +---- .../EventsEditor/EventsEditor.svelte | 49 +++-------- .../src/pages/[application]/_reset.svelte | 88 ++++++++----------- packages/builder/src/pages/_layout.svelte | 61 ++++++------- packages/builder/src/pages/index.svelte | 35 ++------ 7 files changed, 97 insertions(+), 173 deletions(-) diff --git a/packages/builder/package.json b/packages/builder/package.json index 996a1f0205..0de4509698 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -79,7 +79,6 @@ "shortid": "^2.2.15", "svelte-loading-spinners": "^0.1.1", "svelte-portal": "^0.1.0", - "svelte-simple-modal": "^0.4.2", "yup": "^0.29.2" }, "devDependencies": { diff --git a/packages/builder/src/components/common/Modal/Modal.svelte b/packages/builder/src/components/common/Modal/Modal.svelte index beb7613ff3..e3bc0158e5 100644 --- a/packages/builder/src/components/common/Modal/Modal.svelte +++ b/packages/builder/src/components/common/Modal/Modal.svelte @@ -11,11 +11,12 @@ */ import { createEventDispatcher, setContext } from "svelte" import { fade, fly } from "svelte/transition" - import { portal } from "./portal" + import Portal from "svelte-portal" import { ContextKey } from "./context" const dispatch = createEventDispatcher() - export let wide + export let wide = false + export let padded = true let visible @@ -39,7 +40,7 @@ {#if visible} -
+
-
+
-
+ {/if}