Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Block Explorer UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
Block Explorer UI
Commits
ccfb9ea4
Commit
ccfb9ea4
authored
2 months ago
by
Dima Rifai
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#433
- Add NoResult Component
parent
02f702b8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/NoResult.tsx
+28
-0
28 additions, 0 deletions
components/NoResult.tsx
with
28 additions
and
0 deletions
components/NoResult.tsx
0 → 100644
+
28
−
0
View file @
ccfb9ea4
import
{
Search
}
from
"
lucide-react
"
;
import
React
from
"
react
"
;
interface
NoResultProps
{
title
?:
string
;
description
?:
string
;
}
const
NoResult
:
React
.
FC
<
NoResultProps
>
=
({
title
=
"
No Results Found
"
,
description
=
"
We could not find anything matching your search. Try refining your filters or starting a new search.
"
,
})
=>
{
return
(
<
div
className
=
"mt-2 flex flex-col items-center justify-center bg-theme p-6 w-full text-center space-y-3"
>
<
div
className
=
"flex items-center justify-center w-12 h-12 bg-explorer-bg-start rounded-full"
>
<
Search
className
=
"w-6 h-6"
/>
</
div
>
<
h2
className
=
"text-xl font-semibold"
>
{
title
}
</
h2
>
<
p
className
=
"text-sm"
>
{
description
}
</
p
>
</
div
>
);
};
export
default
NoResult
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment