add a back to porfolio link to folder tree component
This commit is contained in:
parent
ba483eb27d
commit
90bddfde70
@ -4,6 +4,7 @@ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|||||||
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import { styled } from '@mui/material/styles';
|
import { styled } from '@mui/material/styles';
|
||||||
|
import { Divider } from '@mui/material';
|
||||||
|
|
||||||
const TCTreeItem = styled(TreeItem)(({ theme }) => ({
|
const TCTreeItem = styled(TreeItem)(({ theme }) => ({
|
||||||
'& .MuiTreeItem-content': {
|
'& .MuiTreeItem-content': {
|
||||||
@ -30,6 +31,9 @@ export default function FolderTree(props) {
|
|||||||
// const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})
|
// const childrenNodeIds = props.tree.children.map(aNode => {return aNode.id})
|
||||||
const expandedNodes = [props.tree.id]
|
const expandedNodes = [props.tree.id]
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<a href='http://localhost:3000'>{"<-"} Back To Portfolio</a>
|
||||||
|
<Divider />
|
||||||
<TreeView
|
<TreeView
|
||||||
aria-label="rich object"
|
aria-label="rich object"
|
||||||
defaultCollapseIcon={<ExpandMoreIcon />}
|
defaultCollapseIcon={<ExpandMoreIcon />}
|
||||||
@ -47,5 +51,6 @@ export default function FolderTree(props) {
|
|||||||
>
|
>
|
||||||
{renderTree(props.tree)}
|
{renderTree(props.tree)}
|
||||||
</TreeView>
|
</TreeView>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user