]> Untitled Git - lemmy.git/commitdiff
Moving create post to below unsubscribe.
authorDessalines <tyhou13@gmx.com>
Sun, 19 May 2019 16:34:27 +0000 (09:34 -0700)
committerDessalines <tyhou13@gmx.com>
Sun, 19 May 2019 16:34:27 +0000 (09:34 -0700)
ui/src/components/sidebar.tsx

index 8d1459d569e55b0105f1de50e123e4c2c53cd18b..6532bc05025c122b58175c276f395deeab88964c 100644 (file)
@@ -115,14 +115,14 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
           <li class="list-inline-item"><Link class="text-info" to={`/u/${mod.user_name}`}>{mod.user_name}</Link></li>
         )}
       </ul>
+      <Link class="btn btn-sm btn-secondary btn-block mb-3" 
+        to={`/create_post/c/${community.name}`}>Create a Post</Link>
       <div>
         {community.subscribed 
           ? <button class="btn btn-sm btn-secondary btn-block mb-3" onClick={linkEvent(community.id, this.handleUnsubscribe)}>Unsubscribe</button>
           : <button class="btn btn-sm btn-secondary btn-block mb-3" onClick={linkEvent(community.id, this.handleSubscribe)}>Subscribe</button>
         }
       </div>
-      <Link class="btn btn-sm btn-secondary btn-block mb-3" 
-        to={`/create_post/c/${community.name}`}>Create a Post</Link>
       {community.description && 
         <div>
           <hr />