Taichi Masuyama 4 سال پیش
والد
کامیت
c812299061
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      packages/app/src/components/Sidebar/PageTree/Item.tsx

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

@@ -47,7 +47,12 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
 
   return (
     <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 => (
           <Item