fix(my-joy-instances): fix breadcrumb routing to align with designs
This commit is contained in:
parent
cb0b613034
commit
dff8a578e4
@ -340,6 +340,7 @@ exports[`renders <Images images=[{name: stuff, imageName: stuff}] /> without thr
|
|||||||
</svg>
|
</svg>
|
||||||
<h4
|
<h4
|
||||||
className="c4"
|
className="c4"
|
||||||
|
onClick={[Function]}
|
||||||
>
|
>
|
||||||
Stuff
|
Stuff
|
||||||
</h4>
|
</h4>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 11 KiB |
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 12 KiB |
@ -73,8 +73,8 @@ exports[`renders <Breadcrumb /> without throwing 1`] = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.c2 {
|
.c2 {
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.375rem;
|
||||||
padding-bottom: 0.75rem;
|
padding-bottom: 0.375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c8 {
|
.c8 {
|
||||||
@ -156,6 +156,34 @@ exports[`renders <Breadcrumb /> without throwing 1`] = `
|
|||||||
<div
|
<div
|
||||||
className="c5"
|
className="c5"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
className="c6"
|
||||||
|
>
|
||||||
|
<h4
|
||||||
|
className="c7"
|
||||||
|
name="breadcrum-item"
|
||||||
|
>
|
||||||
|
Compute
|
||||||
|
</h4>
|
||||||
|
<svg
|
||||||
|
className="c8 "
|
||||||
|
height="6"
|
||||||
|
innerRef={undefined}
|
||||||
|
style={
|
||||||
|
Object {
|
||||||
|
"transform": "rotate(-90deg)",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
viewBox="0 0 9.6 6"
|
||||||
|
width="9.6"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M9.6,1.12,8.24,0,4.8,3.5,1.36,0,0,1.12,4.8,6Z"
|
||||||
|
fill="rgb(151, 151, 151)"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
className="c6"
|
className="c6"
|
||||||
>
|
>
|
||||||
@ -264,8 +292,8 @@ exports[`renders <Breadcrumb match /> without throwing 1`] = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.c2 {
|
.c2 {
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.375rem;
|
||||||
padding-bottom: 0.75rem;
|
padding-bottom: 0.375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c8 {
|
.c8 {
|
||||||
@ -347,6 +375,34 @@ exports[`renders <Breadcrumb match /> without throwing 1`] = `
|
|||||||
<div
|
<div
|
||||||
className="c5"
|
className="c5"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
className="c6"
|
||||||
|
>
|
||||||
|
<h4
|
||||||
|
className="c7"
|
||||||
|
name="breadcrum-item"
|
||||||
|
>
|
||||||
|
Compute
|
||||||
|
</h4>
|
||||||
|
<svg
|
||||||
|
className="c8 "
|
||||||
|
height="6"
|
||||||
|
innerRef={undefined}
|
||||||
|
style={
|
||||||
|
Object {
|
||||||
|
"transform": "rotate(-90deg)",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
viewBox="0 0 9.6 6"
|
||||||
|
width="9.6"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M9.6,1.12,8.24,0,4.8,3.5,1.36,0,0,1.12,4.8,6Z"
|
||||||
|
fill="rgb(151, 151, 151)"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
className="c6"
|
className="c6"
|
||||||
>
|
>
|
||||||
|
@ -9,6 +9,10 @@ export default ({ match }) => {
|
|||||||
const instance = get(match, 'params.instance');
|
const instance = get(match, 'params.instance');
|
||||||
|
|
||||||
const links = [
|
const links = [
|
||||||
|
{
|
||||||
|
name: 'Compute',
|
||||||
|
pathname: '/'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Instances',
|
name: 'Instances',
|
||||||
pathname: '/'
|
pathname: '/'
|
||||||
|
@ -98,8 +98,8 @@ exports[`Breadcrumb Default Breadcrumb 1`] = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.c2 {
|
.c2 {
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.375rem;
|
||||||
padding-bottom: 0.75rem;
|
padding-bottom: 0.375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c0 {
|
.c0 {
|
||||||
|
@ -14,7 +14,7 @@ const BreadcrumContianer = styled(Container)`
|
|||||||
*/
|
*/
|
||||||
export default ({ children, ...rest }) => (
|
export default ({ children, ...rest }) => (
|
||||||
<BreadcrumContianer {...rest} fluid>
|
<BreadcrumContianer {...rest} fluid>
|
||||||
<Padding top={2} bottom={2}>
|
<Padding top={1} bottom={1}>
|
||||||
<Container>
|
<Container>
|
||||||
<Row name="breadcrum">
|
<Row name="breadcrum">
|
||||||
<Col xs={12}>{children}</Col>
|
<Col xs={12}>{children}</Col>
|
||||||
|
Loading…
Reference in New Issue
Block a user