Skip to content

Commit

Permalink
Refactor Loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Apr 26, 2024
1 parent af9dd28 commit c02e5e5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion web/package-lock.json

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

25 changes: 0 additions & 25 deletions web/src/common/Loading.svelte

This file was deleted.

4 changes: 2 additions & 2 deletions web/src/common/import/ImportControls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
} from "../store";
import { bbox, downloadGeneratedFile } from "../utils";
import Osm2streetsSettings from "./Osm2streetsSettings.svelte";
import { Loading } from "../";
import { Loading } from "svelte-utils";
// This component manages a state machine for importing OSM data (from
// Overpass or built-in files) and letting the user change import settings. It
Expand Down Expand Up @@ -157,7 +157,7 @@
{#if imported.kind === "nothing"}
<p>Choose an option above to import somewhere</p>
{:else if imported.kind === "loading"}
<Loading msg={imported.msg} />
<Loading loading={imported.msg} />
{:else if imported.kind === "done"}
<div>
<button type="button" on:click={update}>Update OSM data</button>
Expand Down
1 change: 0 additions & 1 deletion web/src/common/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export { default as BasemapPicker } from "./BasemapPicker.svelte";
export { default as Geocoder } from "./Geocoder.svelte";
export { default as Layout } from "./Layout.svelte";
export { default as Loading } from "./Loading.svelte";
export { default as Map } from "./Map.svelte";
export { default as StreetView } from "./StreetView.svelte";
export { default as ThemePicker } from "./ThemePicker.svelte";
Expand Down

0 comments on commit c02e5e5

Please sign in to comment.