Remove upload option from Sidebar if not authenticated

This commit is contained in:
Cassie Tarakajian 2020-04-16 16:16:19 -04:00
parent 41637d2837
commit 72622df155

View file

@ -113,6 +113,8 @@ class Sidebar extends React.Component {
Create file Create file
</button> </button>
</li> </li>
{
this.props.user.authenticated &&
<li> <li>
<button <button
aria-label="upload file" aria-label="upload file"
@ -126,6 +128,7 @@ class Sidebar extends React.Component {
Upload file Upload file
</button> </button>
</li> </li>
}
</ul> </ul>
</div> </div>
</div> </div>