1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

moved accounts to settings

This commit is contained in:
Fedor Katurov 2020-07-28 14:11:04 +07:00
parent 3e6ede51d4
commit 108f17b0e9
9 changed files with 78 additions and 42 deletions

View file

@ -1,13 +1,13 @@
import React, { FC } from "react";
import { IUser } from "~/redux/auth/types";
import styles from "./styles.scss";
import { Group } from "~/components/containers/Group";
import { Placeholder } from "~/components/placeholders/Placeholder";
import { getURL, getPrettyDate } from "~/utils/dom";
import { PRESETS } from "~/constants/urls";
import { ProfileTabs } from "../ProfileTabs";
import { MessageForm } from "~/components/profile/MessageForm";
import { ProfileAvatar } from "../ProfileAvatar";
import React, { FC } from 'react';
import { IUser } from '~/redux/auth/types';
import styles from './styles.scss';
import { Group } from '~/components/containers/Group';
import { Placeholder } from '~/components/placeholders/Placeholder';
import { getURL, getPrettyDate } from '~/utils/dom';
import { PRESETS } from '~/constants/urls';
import { ProfileTabs } from '../ProfileTabs';
import { MessageForm } from '~/components/profile/MessageForm';
import { ProfileAvatar } from '../ProfileAvatar';
interface IProps {
user?: IUser;
@ -20,7 +20,7 @@ interface IProps {
}
const TAB_HEADERS = {
messages: <MessageForm is_sending_message={false} />
messages: <MessageForm is_sending_message={false} />,
};
const ProfileInfo: FC<IProps> = ({ user, tab, is_loading, is_own, setTab }) => (
@ -30,11 +30,7 @@ const ProfileInfo: FC<IProps> = ({ user, tab, is_loading, is_own, setTab }) => (
<div className={styles.field}>
<div className={styles.name}>
{is_loading ? (
<Placeholder width="80%" />
) : (
user.fullname || user.username
)}
{is_loading ? <Placeholder width="80%" /> : user.fullname || user.username}
</div>
<div className={styles.description}>