updated profile page

This commit is contained in:
Ren Amamiya
2023-03-23 08:37:39 +07:00
parent cd5aca9042
commit 29c7075f22
8 changed files with 173 additions and 274 deletions

View File

@@ -19,10 +19,7 @@ export const ActiveAccount = memo(function ActiveAccount({ user }: { user: any }
const [currentUser]: any = useLocalStorage('current-user');
const openProfile = () => {
router.push({
pathname: '/profile',
query: { id: currentUser.id },
});
router.push(`/users/${currentUser.id}`);
};
// save follows to database