forked from MapComplete/MapComplete
chore: refactoring, linting, removing obsolete files
This commit is contained in:
parent
b7a4930583
commit
2bc2a6cddf
54 changed files with 125 additions and 457 deletions
|
|
@ -5,9 +5,10 @@
|
|||
import type { SpecialVisualizationState } from "../SpecialVisualization"
|
||||
import UserRelatedState from "../../Logic/State/UserRelatedState"
|
||||
import type { Feature } from "geojson"
|
||||
import { ImmutableStore } from "../../Logic/UIEventSource"
|
||||
|
||||
const t = Translations.t.privacy
|
||||
export let state: SpecialVisualizationState
|
||||
export let state: Partial<SpecialVisualizationState>
|
||||
const usersettings = UserRelatedState.usersettingsConfig
|
||||
const editPrivacy = usersettings.tagRenderings.find((tr) => tr.id === "more_privacy")
|
||||
const editThemeHistory = usersettings.tagRenderings.find((tr) => tr.id === "sync-visited-themes")
|
||||
|
|
@ -22,7 +23,7 @@
|
|||
properties: { id: "settings" },
|
||||
geometry: { type: "Point", coordinates: [0, 0] },
|
||||
}
|
||||
const isLoggedIn = state.osmConnection.isLoggedIn
|
||||
const isLoggedIn = state?.osmConnection?.isLoggedIn ?? new ImmutableStore(false)
|
||||
</script>
|
||||
|
||||
<div class="link-underline flex flex-col">
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
state.mapProperties.onKeyNavigationEvent((event) => {
|
||||
lastAction.setData(event)
|
||||
})
|
||||
lastAction.stabilized(750).addCallbackAndRunD((_) => lastAction.setData(undefined))
|
||||
lastAction.stabilized(750).addCallbackAndRunD(() => lastAction.setData(undefined))
|
||||
</script>
|
||||
|
||||
<div aria-live="assertive" class="m-1 rounded bg-white p-1">
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
{#if $userdetails !== undefined}
|
||||
<div style="width: max-content" class="flex items-center">
|
||||
{#if $userdetails.img}
|
||||
<img src={$userdetails.img} alt="profile picture" class="mr-4 h-8 w-8 rounded-full" />
|
||||
<img src={$userdetails.img} alt="avatar" class="mr-4 h-8 w-8 rounded-full" />
|
||||
{/if}
|
||||
<div>
|
||||
<div>Welcome back</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue