Skip to content

Commit

Permalink
center text prompts in Home and List view
Browse files Browse the repository at this point in the history
  • Loading branch information
eva-lng committed Oct 19, 2024
1 parent 4ed1c09 commit e8f57a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/views/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function Home({ data, setListPath, userId, userEmail }) {
userEmail={userEmail}
/>
{data.length === 0 && (
<p>
<p className="text-center">
{' '}
You don&apos;t have any shopping lists yet. Start by creating your
first one!
Expand Down
8 changes: 4 additions & 4 deletions src/views/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ export function List({ data, listPath, lists }) {
<>
<h2 className="subheading">{fixedListTitle}</h2>
{!listPath && lists.length > 0 && data.length > 0 && (
<p>
<p className="text-center">
Oops! No list selected yet. Head to the <Link to="/">home page</Link>{' '}
and select one!
</p>
)}
{!listPath && lists.length > 0 && data.length === 0 && (
<p>
<p className="text-center">
Oops! No list selected yet. Head to the <Link to="/">home page</Link>{' '}
and select one!
</p>
)}
{lists.length === 0 && (
<p>
<p className="text-center">
It looks like you don&apos;t have any shopping lists yet. Head to the{' '}
<Link to="/">home page</Link> to create your first list and start
organizing your shopping!
Expand All @@ -92,7 +92,7 @@ export function List({ data, listPath, lists }) {
{listPath && lists.length > 0 && data.length === 0 && (
<>
<AddItem data={data} listPath={listPath} />
<p>Your list is currently empty.</p>
<p className="text-center">Your list is currently empty.</p>
</>
)}
{listPath && lists.length > 0 && data.length > 0 && (
Expand Down

0 comments on commit e8f57a0

Please sign in to comment.