update urls and user page

This commit is contained in:
Ren Amamiya
2023-07-25 13:25:14 +07:00
parent 7a245cd375
commit 1362dfadda
19 changed files with 246 additions and 170 deletions

View File

@@ -92,7 +92,7 @@ export function ActiveAccount({ data }: { data: any }) {
}
return (
<Link to={`/app/user/${data.pubkey}`} className="relative inline-block h-9 w-9">
<Link to={`/app/users/${data.pubkey}`} className="relative inline-block h-9 w-9">
<Image
src={user?.picture || user?.image}
fallback={DEFAULT_AVATAR}

View File

@@ -2,7 +2,7 @@ import { Disclosure } from '@headlessui/react';
import { NavLink } from 'react-router-dom';
import { twMerge } from 'tailwind-merge';
import { ChatsList } from '@app/chat/components/list';
import { ChatsList } from '@app/chats/components/list';
import { AppHeader } from '@shared/appHeader';
import { ComposerModal } from '@shared/composer/modal';

View File

@@ -128,13 +128,13 @@ export function User({
</div>
<div className="flex items-center gap-2 px-3 py-3">
<Link
to={`/app/user/${pubkey}`}
to={`/app/users/${pubkey}`}
className="inline-flex h-10 flex-1 items-center justify-center rounded-md bg-zinc-700 text-sm font-medium hover:bg-fuchsia-500"
>
View profile
</Link>
<Link
to={`/app/chat/${pubkey}`}
to={`/app/chats/${pubkey}`}
className="inline-flex h-10 flex-1 items-center justify-center rounded-md bg-zinc-700 text-sm font-medium hover:bg-fuchsia-500"
>
Message

View File

@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import { UserMetadata } from '@app/user/components/metadata';
import { UserMetadata } from '@app/users/components/metadata';
import { ZapIcon } from '@shared/icons';
import { Image } from '@shared/image';
@@ -97,7 +97,7 @@ export function UserProfile({ pubkey }: { pubkey: string }) {
</button>
)}
<Link
to={`/app/chat/${pubkey}`}
to={`/app/chats/${pubkey}`}
className="inline-flex h-10 w-36 items-center justify-center rounded-md bg-zinc-900 text-sm font-medium hover:bg-fuchsia-500"
>
Message