Skip to content

Commit a438438

Browse files
committed
more explicit constant names for the home page. also, make the app title a constant
1 parent 17d4904 commit a438438

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

pages/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ import {
1414
configureServices,
1515
useAllWares,
1616
FEATURED_SERVICE_PATH,
17-
ABOUT_US,
18-
TITLE,
17+
ABOUT_US_TEXT,
18+
ABOUT_US_TITLE,
19+
APP_TITLE,
1920
} from '../utils'
2021

2122
const Home = () => {
@@ -31,7 +32,7 @@ const Home = () => {
3132
return (
3233
<>
3334
<Head>
34-
<title>Golden Pacific Sciences - WebStore</title>
35+
<title>{APP_TITLE}</title>
3536
<link rel='icon' href='favicon.png' />
3637
</Head>
3738
<Image
@@ -43,7 +44,7 @@ const Home = () => {
4344
/>
4445
<div className='container'>
4546
<SearchBar onSubmit={handleOnSubmit} />
46-
<TitledTextBox title={TITLE} text={ABOUT_US} />
47+
<TitledTextBox title={ABOUT_US_TITLE} text={ABOUT_US_TEXT} />
4748
{isError ? (
4849
<Notice
4950
alert={configureErrors([isError])}

utils/constants.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ export const DEFAULT_WARE_IMAGE = {
66
alt: 'Several rows of test tubes with a liquid being put into one.',
77
}
88

9-
export const TITLE = 'About Us'
9+
export const APP_TITLE = 'Golden Pacific Sciences - WebStore'
10+
11+
export const ABOUT_US_TITLE = 'About Us'
1012

1113
/* eslint-disable max-len */
12-
export const ABOUT_US = `Golden Pacific Sciences provides a range of products, Best Service Ever , and services within the life-science industry. We are able to support requests from the world’s top pharma companies and 100s of biotechs using Scientist.com.
14+
export const ABOUT_US_TEXT = `Golden Pacific Sciences provides a range of products, Best Service Ever , and services within the life-science industry. We are able to support requests from the world’s top pharma companies and 100s of biotechs using Scientist.com.
1315
1416
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Odio aenean sed adipiscing diam donec adipiscing tristique. Eu lobortis elementum nibh tellus molestie. Mauris pellentesque pulvinar pellentesque habitant morbi tristique senectus et. Nisl purus in mollis nunc sed id semper risus in. Diam volutpat commodo sed egestas egestas fringilla. Lectus proin nibh nisl condimentum. Odio euismod lacinia at quis risus sed vulputate odio ut. Ac feugiat sed lectus vestibulum mattis ullamcorper. Iaculis at erat pellentesque adipiscing commodo elit at. Eget nullam non nisi est sit amet facilisis magna etiam. Faucibus turpis in eu mi bibendum neque egestas. Cursus mattis molestie a iaculis at erat pellentesque adipiscing.`
1517
/* eslint-enable max-len */

0 commit comments

Comments
 (0)