Skip to content

Commit

Permalink
refactor(frontend): rename pages to settings (#2083)
Browse files Browse the repository at this point in the history
# Motivation

Not sure why the folder that contains the settings related components,
and solely those components, is named `pages`. Feels like `settings`
would make more sense here.

# Changes

- Rename `pages` to `settings`.
  • Loading branch information
peterpeterparker authored Aug 21, 2024
1 parent 6584747 commit ad0d22d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
14 changes: 0 additions & 14 deletions src/frontend/src/lib/components/pages/Settings.svelte

This file was deleted.

14 changes: 14 additions & 0 deletions src/frontend/src/lib/components/settings/Settings.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script>
import { authSignedIn } from '$lib/derived/auth.derived';
import SettingsSignedIn from '$lib/components/settings/SettingsSignedIn.svelte';
import SettingsSignedOut from '$lib/components/settings/SettingsSignedOut.svelte';
import SettingsVersion from '$lib/components/settings/SettingsVersion.svelte';
</script>

{#if $authSignedIn}
<SettingsSignedIn />
{:else}
<SettingsSignedOut />
{/if}

<SettingsVersion />
2 changes: 1 addition & 1 deletion src/frontend/src/routes/(app)/settings/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Settings from '$lib/components/pages/Settings.svelte';
import Settings from '$lib/components/settings/Settings.svelte';
import { i18n } from '$lib/stores/i18n.store';
</script>

Expand Down

0 comments on commit ad0d22d

Please sign in to comment.