Updated Gab Deck utils

• Updated:
- Gab Deck utils
This commit is contained in:
mgabdev 2020-12-06 00:14:43 -05:00
parent 889c5c562e
commit 5422c013e1
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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})` : ''

View File

@ -10,7 +10,7 @@ class DeckPage extends React.PureComponent {
return ( return (
<DeckLayout> <DeckLayout>
<PageTitle path={'Deck'} /> <PageTitle path='Deck' />
{children} {children}
</DeckLayout> </DeckLayout>
) )