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:
parent
c6c7dbe75d
commit
07b4874f69
16 changed files with 202 additions and 84 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue