Commit b2e900c6 authored by Stefan Probst's avatar Stefan Probst
Browse files

chore: improve nothing found messages

parent 529ae78c
Pipeline #208152 passed with stages
in 15 minutes and 22 seconds
...@@ -119,7 +119,7 @@ export default function ActorsScreen(): JSX.Element { ...@@ -119,7 +119,7 @@ export default function ActorsScreen(): JSX.Element {
<ItemPagination filter={query} results={actors.data} /> <ItemPagination filter={query} results={actors.data} />
</div> </div>
{actors.data.actors?.length === 0 ? ( {actors.data.actors?.length === 0 ? (
<div>Nothing found</div> <div>No actors found.</div>
) : ( ) : (
<ul className="space-y-2.5"> <ul className="space-y-2.5">
{actors.data.actors?.map((actor) => { {actors.data.actors?.map((actor) => {
......
...@@ -95,7 +95,7 @@ export default function ContributedItemsScreen(): JSX.Element { ...@@ -95,7 +95,7 @@ export default function ContributedItemsScreen(): JSX.Element {
{items.data === undefined ? ( {items.data === undefined ? (
<ProgressSpinner /> <ProgressSpinner />
) : items.data.items?.length === 0 ? ( ) : items.data.items?.length === 0 ? (
<div>Nothing found</div> <div>Nothing contributed yet.</div>
) : ( ) : (
<Fragment> <Fragment>
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
......
...@@ -90,7 +90,7 @@ export default function ModerateItemsScreen(): JSX.Element { ...@@ -90,7 +90,7 @@ export default function ModerateItemsScreen(): JSX.Element {
{items.data === undefined ? ( {items.data === undefined ? (
<ProgressSpinner /> <ProgressSpinner />
) : items.data.items?.length === 0 ? ( ) : items.data.items?.length === 0 ? (
<div>Nothing found</div> <div>Nothing to moderate.</div>
) : ( ) : (
<Fragment> <Fragment>
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
......
...@@ -131,7 +131,7 @@ export default function SourcesScreen(): JSX.Element { ...@@ -131,7 +131,7 @@ export default function SourcesScreen(): JSX.Element {
<ItemPagination filter={query} results={sources.data} /> <ItemPagination filter={query} results={sources.data} />
</div> </div>
{sources.data.sources?.length === 0 ? ( {sources.data.sources?.length === 0 ? (
<div>Nothing found</div> <div>No source found.</div>
) : ( ) : (
<ul className="space-y-2.5"> <ul className="space-y-2.5">
{sources.data.sources?.map((source) => { {sources.data.sources?.map((source) => {
......
...@@ -120,7 +120,7 @@ export default function UsersScreen(): JSX.Element { ...@@ -120,7 +120,7 @@ export default function UsersScreen(): JSX.Element {
<ItemPagination filter={query} results={users.data} /> <ItemPagination filter={query} results={users.data} />
</div> </div>
{users.data.users?.length === 0 ? ( {users.data.users?.length === 0 ? (
<div>Nothing found</div> <div>No users found.</div>
) : ( ) : (
<ul className="space-y-2.5"> <ul className="space-y-2.5">
{users.data.users?.map((user) => { {users.data.users?.map((user) => {
......
...@@ -42,7 +42,7 @@ export function ItemHistory(props: ItemHistoryProps): JSX.Element { ...@@ -42,7 +42,7 @@ export function ItemHistory(props: ItemHistoryProps): JSX.Element {
} }
if (itemHistory.data === undefined) { if (itemHistory.data === undefined) {
return <p>Nothing found</p> return <p>No versions found.</p>
} }
return ( return (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment