Updated Gab Deck utils
• Updated: - Gab Deck utils
This commit is contained in:
		
							parent
							
								
									889c5c562e
								
							
						
					
					
						commit
						5422c013e1
					
				| @ -48,7 +48,7 @@ import AboutPage from '../../pages/about_page' | |||||||
| import LinkPage from '../../pages/link_page' | import LinkPage from '../../pages/link_page' | ||||||
| import MessagesPage from '../../pages/messages_page' | import MessagesPage from '../../pages/messages_page' | ||||||
| import ComposePage from '../../pages/compose_page' | import ComposePage from '../../pages/compose_page' | ||||||
| import DeckPage from '../../pages/compose_page' | import DeckPage from '../../pages/deck_page' | ||||||
| 
 | 
 | ||||||
| import { | import { | ||||||
|   About, |   About, | ||||||
|  | |||||||
| @ -16,7 +16,7 @@ class PageTitle extends React.PureComponent { | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   updatePageTitle = ({ badge, path}) => { |   updatePageTitle = ({ badge, path}) => { | ||||||
|     let realPath = Array.isArray(path) ? path.join(' / ') : path |     let realPath = Array.isArray(path) ? path.join(' / ') : `${path}` | ||||||
|     realPath = realPath.trim() |     realPath = realPath.trim() | ||||||
| 
 | 
 | ||||||
|     const realBadge = !!badge ? `(${badge})` : '' |     const realBadge = !!badge ? `(${badge})` : '' | ||||||
|  | |||||||
| @ -10,7 +10,7 @@ class DeckPage extends React.PureComponent { | |||||||
| 
 | 
 | ||||||
|     return ( |     return ( | ||||||
|       <DeckLayout> |       <DeckLayout> | ||||||
|         <PageTitle path={'Deck'} /> |         <PageTitle path='Deck' /> | ||||||
|         {children} |         {children} | ||||||
|       </DeckLayout> |       </DeckLayout> | ||||||
|     ) |     ) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 mgabdev
						mgabdev