Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ce-ui-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
ccce
dev
ce-ui-common
Commits
fb19641f
Commit
fb19641f
authored
1 month ago
by
Johanna Szepanski
Browse files
Options
Downloads
Patches
Plain Diff
migrated error page story
parent
a5563c7b
No related branches found
No related tags found
No related merge requests found
Pipeline
#219640
passed
1 month ago
Stage: setup
Stage: check
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/common/ErrorPage/ErrorPage.tsx
+1
-1
1 addition, 1 deletion
src/components/common/ErrorPage/ErrorPage.tsx
src/stories/common/ErrorPage/ErrorPage.stories.tsx
+6
-4
6 additions, 4 deletions
src/stories/common/ErrorPage/ErrorPage.stories.tsx
with
7 additions
and
5 deletions
src/components/common/ErrorPage/ErrorPage.tsx
+
1
−
1
View file @
fb19641f
...
...
@@ -16,7 +16,7 @@ import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import
{
ExternalButtonLink
,
InternalButtonLink
}
from
"
../Link
"
;
import
{
theme
}
from
"
../../../style/Theme
"
;
interface
ErrorPageProps
{
export
interface
ErrorPageProps
{
title
:
string
;
subtitle
:
string
;
details
?:
string
;
...
...
This diff is collapsed.
Click to expand it.
src/stories/common/ErrorPage/ErrorPage.stories.
j
sx
→
src/stories/common/ErrorPage/ErrorPage.stories.
t
sx
+
6
−
4
View file @
fb19641f
import
{
Meta
}
from
"
@storybook/react
"
;
import
{
Button
,
Paper
}
from
"
@mui/material
"
;
import
{
BrowserRouter
}
from
"
react-router-dom
"
;
import
{
ErrorPage
}
from
"
../../../components/common/ErrorPage
"
;
import
{
ErrorPageProps
}
from
"
../../../components/common/ErrorPage/ErrorPage
"
;
import
{
theme
}
from
"
../../../style/Theme
"
;
import
{
SidewaysMascot
,
...
...
@@ -10,9 +12,9 @@ import {
export
default
{
title
:
"
Common/ErrorPage
"
,
component
:
ErrorPage
};
}
as
Meta
<
typeof
ErrorPage
>
;
const
Template
=
(
props
)
=>
{
const
Template
=
(
props
:
ErrorPageProps
)
=>
{
return
(
<
BrowserRouter
>
<
Paper
sx
=
{
{
padding
:
2
}
}
>
...
...
@@ -24,7 +26,7 @@ const Template = (props) => {
const
mascotDefaultProps
=
{
width
:
"
250px
"
,
height
:
"
500px
"
};
export
const
Default
=
(
args
)
=>
<
Template
{
...
args
}
/>;
export
const
Default
=
(
args
:
ErrorPageProps
)
=>
<
Template
{
...
args
}
/>;
Default
.
args
=
{
title
:
"
Badger Ducks Summoned
"
,
subtitle
:
"
HTTP 503
"
,
...
...
@@ -71,7 +73,7 @@ Suppressed: com.physics.particles.PauliExclusionFreakoutException: Pauli exclusi
`
};
export
const
Customized
=
(
args
)
=>
<
Template
{
...
args
}
/>;
export
const
Customized
=
(
args
:
ErrorPageProps
)
=>
<
Template
{
...
args
}
/>;
Customized
.
args
=
{
...
Default
.
args
,
titleProps
:
{
variant
:
"
h1
"
,
color
:
theme
.
palette
.
error
.
main
},
...
...
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