1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-06 18:16:41 +07:00

added sample user profile page ()

This commit is contained in:
muerwre 2022-08-14 18:05:39 +07:00 committed by GitHub
parent aee4b662d5
commit 7638bdd1ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 60 additions and 45 deletions
src/pages/profile

View file

@ -0,0 +1,27 @@
import React, { FC } from 'react';
import { useRouter } from 'next/router';
import { RouteComponentProps } from 'react-router';
import { PageTitle } from '~/components/common/PageTitle';
import { useGlobalLoader } from '~/hooks/dom/useGlobalLoader';
import { ProfileLayout } from '~/layouts/ProfileLayout';
import { FlowProvider } from '~/utils/providers/FlowProvider';
import { getPageTitle } from '~/utils/ssr/getPageTitle';
type ProfilePageProps = RouteComponentProps<{ username: string }>;
const ProfilePage: FC<ProfilePageProps> = () => {
const { query } = useRouter();
useGlobalLoader();
return (
<FlowProvider>
<PageTitle title={getPageTitle('Флоу')} />
<ProfileLayout username={query.username as string} />
</FlowProvider>
);
};
export default ProfilePage;