Rename /user to /users

This commit is contained in:
Jonathan Staab 2022-11-26 09:31:34 -08:00
parent b4edf0d5b2
commit 4cf0945305
3 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@
{/key} {/key}
</Route> </Route>
<Route path="/chat/:room/edit" component={ChatEdit} /> <Route path="/chat/:room/edit" component={ChatEdit} />
<Route path="/user/:pubkey" component={UserDetail} /> <Route path="/users/:pubkey" component={UserDetail} />
<Route path="/settings/keys" component={Keys} /> <Route path="/settings/keys" component={Keys} />
<Route path="/settings/relays" component={RelayList} /> <Route path="/settings/relays" component={RelayList} />
<Route path="/settings/profile" component={Profile} /> <Route path="/settings/profile" component={Profile} />
@ -87,7 +87,7 @@
> >
{#if $user} {#if $user}
<li> <li>
<a href={`/user/${$user.pubkey}`} class="flex gap-2 px-4 py-2 pb-6 items-center"> <a href={`/users/${$user.pubkey}`} class="flex gap-2 px-4 py-2 pb-6 items-center">
<div <div
class="overflow-hidden w-6 h-6 rounded-full bg-cover bg-center shrink-0 border border-solid border-white" class="overflow-hidden w-6 h-6 rounded-full bg-cover bg-center shrink-0 border border-solid border-white"
style="background-image: url({$user.picture})" /> style="background-image: url({$user.picture})" />

View File

@ -3,7 +3,7 @@
</script> </script>
{#if user} {#if user}
<a href={`/user/${user.pubkey}`} class="flex gap-2 items-center"> <a href={`/users/${user.pubkey}`} class="flex gap-2 items-center">
<div <div
class="overflow-hidden w-4 h-4 rounded-full bg-cover bg-center shrink-0 border border-solid border-white" class="overflow-hidden w-4 h-4 rounded-full bg-cover bg-center shrink-0 border border-solid border-white"
style="background-image: url({user.picture})" /> style="background-image: url({user.picture})" />

View File

@ -44,7 +44,7 @@
} else { } else {
await dispatch("account/update", values) await dispatch("account/update", values)
navigate(`/user/${$user.pubkey}`) navigate(`/users/${$user.pubkey}`)
toast.show("info", "Your profile has been updated!") toast.show("info", "Your profile has been updated!")
} }