accounts-frontend/packages/app/pages/profile/ProfilePage.tsx

15 lines
441 B
TypeScript
Raw Normal View History

import React, { ComponentType } from 'react';
import { useSelector } from 'react-redux';
import { RootState } from 'app/reducers';
import Profile from 'app/components/profile/Profile';
2019-12-30 13:45:40 +05:30
const ProfileController: ComponentType = () => {
const [user, activeLocale] = useSelector((state: RootState) => [state.user, state.i18n.locale]);
return <Profile user={user} activeLocale={activeLocale} />;
};
2020-05-24 04:38:24 +05:30
export default ProfileController;