]> Untitled Git - lemmy.git/commitdiff
Adding API to footer
authorDessalines <tyhou13@gmx.com>
Wed, 15 May 2019 16:12:54 +0000 (09:12 -0700)
committerDessalines <tyhou13@gmx.com>
Wed, 15 May 2019 16:12:54 +0000 (09:12 -0700)
ui/src/components/footer.tsx

index 3f6288ff9ff23a38cb5bab2afa034d49dd9ec1ac..31403d7cad286dbbf4ab721119f218d60dcf01b1 100644 (file)
@@ -12,7 +12,7 @@ export class Footer extends Component<any, any> {
 
   render() {
     return (
-      <nav title={version} class="container navbar navbar-expand-md navbar-light navbar-bg p-0 px-3 my-2">
+      <nav class="container navbar navbar-expand-md navbar-light navbar-bg p-0 px-3 my-2">
         <div className="navbar-collapse">
           <ul class="navbar-nav ml-auto">
             <li class="nav-item">
@@ -22,13 +22,13 @@ export class Footer extends Component<any, any> {
               <Link class="nav-link" to="/modlog">Modlog</Link>
             </li>
             <li class="nav-item">
-              <Link class="nav-link" to="/sponsors">Sponsors</Link>
+              <a class="nav-link" href={`${repoUrl}/blob/master/docs/api.md`}>API</a>
             </li>
             <li class="nav-item">
-              <a class="nav-link" href={repoUrl}>Code</a>
+              <Link class="nav-link" to="/sponsors">Sponsors</Link>
             </li>
             <li class="nav-item">
-              <a class="nav-link" href={repoUrl}>About</a>
+              <a class="nav-link" href={repoUrl}>Code</a>
             </li>
           </ul>
         </div>