Revert "fixed nextjs build with super cringe solution (will be revert in next commit)"
This reverts commit a2aad487ab.
This commit is contained in:
@@ -18,7 +18,7 @@ export default function AppActions() {
|
||||
};
|
||||
|
||||
const reload = () => {
|
||||
window.location.reload();
|
||||
router.refresh();
|
||||
};
|
||||
|
||||
useLayoutEffect(() => {
|
||||
|
||||
@@ -10,7 +10,7 @@ export const ChannelListItem = ({ data }: { data: any }) => {
|
||||
|
||||
return (
|
||||
<ActiveLink
|
||||
href={`/nostr/channels?id=${data.event_id}`}
|
||||
href={`/nostr/channels/${data.event_id}`}
|
||||
activeClassName="dark:bg-zinc-900 dark:text-zinc-100 hover:dark:bg-zinc-800"
|
||||
className="inline-flex items-center gap-2 rounded-md px-2.5 py-1.5 hover:bg-zinc-900"
|
||||
>
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function ChatList() {
|
||||
const profile = JSON.parse(activeAccount.metadata);
|
||||
|
||||
const openSelfChat = () => {
|
||||
router.push(`/nostr/chats?pubkey=${activeAccount.pubkey}`);
|
||||
router.push(`/nostr/chats/${activeAccount.pubkey}`);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -11,7 +11,7 @@ export const ChatListItem = ({ pubkey }: { pubkey: string }) => {
|
||||
|
||||
return (
|
||||
<ActiveLink
|
||||
href={`/nostr/chats?pubkey=${pubkey}`}
|
||||
href={`/nostr/chats/${pubkey}`}
|
||||
activeClassName="dark:bg-zinc-900 dark:text-zinc-100 hover:dark:bg-zinc-800"
|
||||
className="inline-flex items-center gap-2 rounded-md px-2.5 py-1.5 hover:bg-zinc-900"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user