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

removed profile redux items

This commit is contained in:
Fedor Katurov 2022-01-08 18:01:38 +07:00
parent 5b28313afd
commit 3c0571816c
55 changed files with 488 additions and 710 deletions

View file

@ -1,15 +1,12 @@
import React, { FC } from 'react';
import styles from './styles.module.scss';
import { IAuthState } from '~/redux/auth/types';
import { Tabs } from '~/components/dialogs/Tabs';
import React, { FC } from "react";
import styles from "./styles.module.scss";
import { Tabs } from "~/components/dialogs/Tabs";
interface IProps {
tab: string;
is_own: boolean;
setTab?: (tab: IAuthState['profile']['tab']) => void;
}
const ProfileTabs: FC<IProps> = ({ tab, is_own, setTab }) => {
const ProfileTabs: FC<IProps> = ({ is_own }) => {
const items = ['Профиль', 'Сообщения', ...(is_own ? ['Настройки'] : [])];
return (