Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
design-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
design-system
Commits
f153731c
Commit
f153731c
authored
1 year ago
by
Alissa Cheng
Browse files
Options
Downloads
Patches
Plain Diff
chore: destruct empty states
parent
fba187cf
No related branches found
No related tags found
1 merge request
!51
feat: general error component
Pipeline
#79872
passed
1 year ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/EmptyState.tsx
+15
-15
15 additions, 15 deletions
src/components/EmptyState.tsx
with
15 additions
and
15 deletions
src/components/EmptyState.tsx
+
15
−
15
View file @
f153731c
...
@@ -33,22 +33,22 @@ type EmptyStateProps = {
...
@@ -33,22 +33,22 @@ type EmptyStateProps = {
content
:
ReactNode
;
content
:
ReactNode
;
};
};
export
const
NoEntries
=
({
title
,
content
}:
EmptyStateProps
)
=>
{
export
const
NoEntries
=
({
title
,
content
}:
EmptyStateProps
)
=>
(
return
<
Template
src
=
{
noEntries
}
title
=
{
title
}
content
=
{
content
}
/>
;
<
Template
src
=
{
noEntries
}
title
=
{
title
}
content
=
{
content
}
/>
}
;
)
;
export
const
NoResults
=
({
title
,
content
}:
EmptyStateProps
)
=>
{
export
const
NoResults
=
({
title
,
content
}:
EmptyStateProps
)
=>
(
return
<
Template
src
=
{
noResults
}
title
=
{
title
}
content
=
{
content
}
/>
;
<
Template
src
=
{
noResults
}
title
=
{
title
}
content
=
{
content
}
/>
}
;
)
;
export
const
NoAccess
=
({
title
,
content
}:
EmptyStateProps
)
=>
{
export
const
NoAccess
=
({
title
,
content
}:
EmptyStateProps
)
=>
(
return
<
Template
src
=
{
noAccess
}
title
=
{
title
}
content
=
{
content
}
/>
;
<
Template
src
=
{
noAccess
}
title
=
{
title
}
content
=
{
content
}
/>
}
;
)
;
export
const
NotFound
=
({
title
,
content
}:
EmptyStateProps
)
=>
{
export
const
NotFound
=
({
title
,
content
}:
EmptyStateProps
)
=>
(
return
<
Template
src
=
{
notFound
}
title
=
{
title
}
content
=
{
content
}
/>
;
<
Template
src
=
{
notFound
}
title
=
{
title
}
content
=
{
content
}
/>
}
;
)
;
export
const
GeneralError
=
({
title
,
content
}:
EmptyStateProps
)
=>
{
export
const
GeneralError
=
({
title
,
content
}:
EmptyStateProps
)
=>
(
return
<
Template
src
=
{
generalError
}
title
=
{
title
}
content
=
{
content
}
/>
;
<
Template
src
=
{
generalError
}
title
=
{
title
}
content
=
{
content
}
/>
}
;
)
;
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