clean up some code
This commit is contained in:
parent
f8298e7930
commit
c245e92fde
@ -39,11 +39,8 @@ export default function FolderTree(props) {
|
|||||||
const currentNode = props.flattenNodes.find(aNode => {
|
const currentNode = props.flattenNodes.find(aNode => {
|
||||||
return aNode.id === nodIds
|
return aNode.id === nodIds
|
||||||
})
|
})
|
||||||
// console.log(event)
|
|
||||||
// console.log(currentNode)
|
|
||||||
if (currentNode != null && currentNode.routePath != null) {
|
if (currentNode != null && currentNode.routePath != null) {
|
||||||
router.push(currentNode.routePath)
|
router.push(currentNode.routePath)
|
||||||
// router.reload()
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
sx={{ flexGrow: 1, maxWidth: 400, overflowY: 'auto' }}
|
sx={{ flexGrow: 1, maxWidth: 400, overflowY: 'auto' }}
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
import Head from 'next/head'
|
|
||||||
// import BasicTree from 'lib/MyFolderTree'
|
|
||||||
export const siteTitle = 'Digital Backroom - An Internet Archive'
|
export const siteTitle = 'Digital Backroom - An Internet Archive'
|
||||||
import {Box} from '@mui/material'
|
|
||||||
export default function Layout({ children }) {
|
export default function Layout({ children }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<main className="theme-light">
|
<main className="theme-light">
|
||||||
|
@ -6,7 +6,6 @@ function MDContainer({post, fileNames}) {
|
|||||||
const [posts, setPosts] = useState([post]);
|
const [posts, setPosts] = useState([post]);
|
||||||
|
|
||||||
function handleClick(content) {
|
function handleClick(content) {
|
||||||
// console.log(content)
|
|
||||||
setPosts(prevPosts => {
|
setPosts(prevPosts => {
|
||||||
return [...prevPosts, content]
|
return [...prevPosts, content]
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user