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
5865b242
Commit
5865b242
authored
2 months ago
by
Dima Rifai
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#433
- Create NoResult Component
parent
94644e15
Branches
delrifai/#433_add_noResult_component
No related tags found
1 merge request
!526
Delrifai/#433 add no result component
Pipeline
#113818
failed
2 months ago
Stage: build
Stage: test
Stage: test-report-aggregate
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/NoResults.tsx
+28
-0
28 additions, 0 deletions
components/NoResults.tsx
with
28 additions
and
0 deletions
components/NoResults.tsx
0 → 100644
+
28
−
0
View file @
5865b242
import
{
Search
}
from
"
lucide-react
"
;
// Importing Lucide React for icons
import
React
from
"
react
"
;
interface
NoResultsProps
{
title
?:
string
;
description
?:
string
;
}
const
NoResults
:
React
.
FC
<
NoResultsProps
>
=
({
title
=
"
No Results Found
"
,
description
=
"
We couldn’t 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
NoResults
;
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