Skip to content

Commit

Permalink
Refactor Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Apr 27, 2024
1 parent b577d9d commit da2093c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 38 deletions.
11 changes: 6 additions & 5 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion web/src/About.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { Modal, notNull } from "./common";
import { Modal } from "svelte-utils";
import { notNull } from "./common";
import { showAbout } from "./stores";
</script>

Expand Down
3 changes: 2 additions & 1 deletion web/src/Settings.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { BasemapPicker, Modal } from "./common";
import { BasemapPicker } from "./common";
import { Modal } from "svelte-utils";
import { lightMode } from "./stores";
import settingsLight from "../assets/settings_light.svg?url";
import settingsDark from "../assets/settings_dark.svg?url";
Expand Down
29 changes: 0 additions & 29 deletions web/src/common/Modal.svelte

This file was deleted.

1 change: 0 additions & 1 deletion web/src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export { default as BasemapPicker } from "./BasemapPicker.svelte";
export { default as DisableInteractiveLayers } from "./DisableInteractiveLayers.svelte";
export { default as Layout } from "./Layout.svelte";
export { default as Link } from "./Link.svelte";
export { default as Modal } from "./Modal.svelte";
export { default as OverpassSelector } from "./OverpassSelector.svelte";
export { default as Popup } from "./Popup.svelte";
export { default as StreetView } from "./StreetView.svelte";
Expand Down
3 changes: 2 additions & 1 deletion web/src/edit/ChangeModalFilter.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import { Modal } from "svelte-utils";
import { filterType } from "../stores";
import { Modal, notNull } from "../common";
import { notNull } from "../common";
// TODO Use of import.meta.env.BASE_URL below is to workaround https://github.com/vitejs/vite/issues/10601
Expand Down

0 comments on commit da2093c

Please sign in to comment.