Remove upload option from Sidebar if not authenticated
This commit is contained in:
		
							parent
							
								
									41637d2837
								
							
						
					
					
						commit
						72622df155
					
				
					 1 changed files with 16 additions and 13 deletions
				
			
		|  | @ -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> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Cassie Tarakajian
						Cassie Tarakajian