Skip to content

Commit e8f57a0

Browse files
committed
center text prompts in Home and List view
1 parent 4ed1c09 commit e8f57a0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/views/Home.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function Home({ data, setListPath, userId, userEmail }) {
1919
userEmail={userEmail}
2020
/>
2121
{data.length === 0 && (
22-
<p>
22+
<p className="text-center">
2323
{' '}
2424
You don&apos;t have any shopping lists yet. Start by creating your
2525
first one!

src/views/List.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ export function List({ data, listPath, lists }) {
7171
<>
7272
<h2 className="subheading">{fixedListTitle}</h2>
7373
{!listPath && lists.length > 0 && data.length > 0 && (
74-
<p>
74+
<p className="text-center">
7575
Oops! No list selected yet. Head to the <Link to="/">home page</Link>{' '}
7676
and select one!
7777
</p>
7878
)}
7979
{!listPath && lists.length > 0 && data.length === 0 && (
80-
<p>
80+
<p className="text-center">
8181
Oops! No list selected yet. Head to the <Link to="/">home page</Link>{' '}
8282
and select one!
8383
</p>
8484
)}
8585
{lists.length === 0 && (
86-
<p>
86+
<p className="text-center">
8787
It looks like you don&apos;t have any shopping lists yet. Head to the{' '}
8888
<Link to="/">home page</Link> to create your first list and start
8989
organizing your shopping!
@@ -92,7 +92,7 @@ export function List({ data, listPath, lists }) {
9292
{listPath && lists.length > 0 && data.length === 0 && (
9393
<>
9494
<AddItem data={data} listPath={listPath} />
95-
<p>Your list is currently empty.</p>
95+
<p className="text-center">Your list is currently empty.</p>
9696
</>
9797
)}
9898
{listPath && lists.length > 0 && data.length > 0 && (

0 commit comments

Comments
 (0)