Skip to content

Commit 339a49f

Browse files
authored
move default site title to constants (#279)
1 parent 0ffea17 commit 339a49f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/pwa/app/components/seo/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import React from 'react'
88
import PropTypes from 'prop-types'
99
import Helmet from 'react-helmet'
1010

11+
import {DEFAULT_SITE_TITLE} from '../../constants'
12+
1113
const Seo = ({title, description, noIndex, children, ...props}) => {
12-
const siteName = 'Retail React App'
13-
const fullTitle = title ? `${title} | ${siteName}` : siteName
14+
const fullTitle = title ? `${title} | ${DEFAULT_SITE_TITLE}` : DEFAULT_SITE_TITLE
1415

1516
return (
1617
<Helmet {...props}>

packages/pwa/app/constants.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ export const urlPartPositions = {
6363
QUERY_PARAM: 'query_param',
6464
NONE: 'none'
6565
}
66+
67+
export const DEFAULT_SITE_TITLE = 'Retail React App'

0 commit comments

Comments
 (0)