mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
added treeview dependency
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
80f91b5dc1
commit
378bb7d4db
@@ -1,5 +1,24 @@
|
||||
import React from "react";
|
||||
import { SidebarScroller } from "./style";
|
||||
import Tree from "react-treeview";
|
||||
|
||||
const Sidebar = () => { }
|
||||
const makeTree = () => {
|
||||
|
||||
}
|
||||
|
||||
const Sidebar = () => {
|
||||
|
||||
return (
|
||||
<Tree
|
||||
nodeLabel={<div>"Javascript"</div>}
|
||||
>
|
||||
<Tree
|
||||
nodeLabel={<div>"Javascript"</div>}
|
||||
>
|
||||
Test
|
||||
</Tree>
|
||||
</Tree>
|
||||
)
|
||||
}
|
||||
|
||||
export default Sidebar;
|
||||
@@ -0,0 +1,6 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const SidebarScroller = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
`
|
||||
@@ -0,0 +1,17 @@
|
||||
import React from "react";
|
||||
import { SidebarTitle } from "./style";
|
||||
|
||||
export interface SidebarSectionProps {
|
||||
readonly title: string;
|
||||
}
|
||||
|
||||
const SidebarSection = ({ title, children }: React.PropsWithChildren<SidebarSectionProps>) => {
|
||||
return (
|
||||
<div>
|
||||
<SidebarTitle>{title}</SidebarTitle>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default SidebarSection;
|
||||
@@ -0,0 +1,5 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const SidebarTitle = styled.h3`
|
||||
text-transform: uppercase;
|
||||
`;
|
||||
Reference in New Issue
Block a user