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

added working profile sidebar

This commit is contained in:
Fedor Katurov 2022-02-15 16:11:29 +07:00
parent c6c7dbe75d
commit 07b4874f69
16 changed files with 202 additions and 84 deletions

View file

@ -13,7 +13,7 @@ const TabContext = createContext({
setActiveTab: (activeTab: number) => {},
});
const List: VFC<TabProps> = ({ items }) => {
const HorizontalList: VFC<TabProps> = ({ items }) => {
const { activeTab, setActiveTab } = useContext(TabContext);
return (
@ -54,7 +54,7 @@ const Tabs = function({ children }) {
return <TabContext.Provider value={{ activeTab, setActiveTab }}>{children}</TabContext.Provider>;
};
Tabs.List = List;
Tabs.Horizontal = HorizontalList;
Tabs.Content = Content;
export { Tabs };