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 {
<ItemPagination filter={query} results={actors.data} />
</div>
{actors.data.actors?.length === 0 ? (
<div>Nothing found</div>
<div>No actors found.</div>
) : (
<ul className="space-y-2.5">
{actors.data.actors?.map((actor) => {
......
......@@ -95,7 +95,7 @@ export default function ContributedItemsScreen(): JSX.Element {
{items.data === undefined ? (
<ProgressSpinner />
) : items.data.items?.length === 0 ? (
<div>Nothing found</div>
<div>Nothing contributed yet.</div>
) : (
<Fragment>
<div className="flex items-center justify-between">
......
......@@ -90,7 +90,7 @@ export default function ModerateItemsScreen(): JSX.Element {
{items.data === undefined ? (
<ProgressSpinner />
) : items.data.items?.length === 0 ? (
<div>Nothing found</div>
<div>Nothing to moderate.</div>
) : (
<Fragment>
<div className="flex items-center justify-between">
......
......@@ -131,7 +131,7 @@ export default function SourcesScreen(): JSX.Element {
<ItemPagination filter={query} results={sources.data} />
</div>
{sources.data.sources?.length === 0 ? (
<div>Nothing found</div>
<div>No source found.</div>
) : (
<ul className="space-y-2.5">
{sources.data.sources?.map((source) => {
......
......@@ -120,7 +120,7 @@ export default function UsersScreen(): JSX.Element {
<ItemPagination filter={query} results={users.data} />
</div>
{users.data.users?.length === 0 ? (
<div>Nothing found</div>
<div>No users found.</div>
) : (
<ul className="space-y-2.5">
{users.data.users?.map((user) => {
......
......@@ -42,7 +42,7 @@ export function ItemHistory(props: ItemHistoryProps): JSX.Element {
}
if (itemHistory.data === undefined) {
return <p>Nothing found</p>
return <p>No versions found.</p>
}
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