Taichi Masuyama 4 lat temu
rodzic
commit
c812299061

+ 6 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -47,7 +47,12 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
 
 
   return (
   return (
     <div style={style}>
     <div style={style}>
-      <p><button type="button" className="btn btn-light p-1" onClick={onClickLoadChildren}>Load</button>  {page.path}</p>
+      <div>
+        <button type="button" className="btn btn-light p-1" onClick={onClickLoadChildren}>Load</button>
+        <a href={page._id}>
+          <p>{page.path}</p>
+        </a>
+      </div>
       {
       {
         hasChildren() && currentChildren.map(node => (
         hasChildren() && currentChildren.map(node => (
           <Item
           <Item