Skip to content

Commit 49979a2

Browse files
authored
Bundling (#373)
* try some things * package * imports * tidy * breadcrumb fix
1 parent bc7405d commit 49979a2

File tree

5 files changed

+39
-7
lines changed

5 files changed

+39
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## [31.1.2] - 2025-07-10
3+
- Fix breadcrumbs layout bug
4+
## [31.1.1] - 2025-07-09
5+
- Slight changes to rollup bundle config
26
## [31.1.0] - 2025-07-07
37
- Remove redundant Fragment
48
## [31.1.0] - 2025-07-07

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linn-it/linn-form-components-library",
3-
"version": "31.1.2-alpha",
3+
"version": "31.1.2",
44
"private": false,
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",

src/components/Breadcrumbs.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import Typography from '@mui/material/Typography';
33
import Link from '@mui/material/Link';
4-
import Box from '@mui/material/Box';
54

65
function Breadcrumbs({
76
navigate,
@@ -40,7 +39,7 @@ function Breadcrumbs({
4039
}, []);
4140

4241
return (
43-
<Box style={{ marginLeft: '20px' }}>
42+
<span style={{ marginLeft: '20px' }}>
4443
<Link
4544
key="home"
4645
href={homeUrl}
@@ -57,7 +56,7 @@ function Breadcrumbs({
5756
{crumbs.map((crumb, index) => {
5857
if (index < crumbs.length - 1) {
5958
return (
60-
<Box key={index}>
59+
<span key={index}>
6160
<Link
6261
key={crumb.href}
6362
href={crumb.href}
@@ -72,7 +71,7 @@ function Breadcrumbs({
7271
{crumb.caption}
7372
</Link>
7473
<> {' / '} </>
75-
</Box>
74+
</span>
7675
);
7776
}
7877
return (
@@ -81,7 +80,7 @@ function Breadcrumbs({
8180
</Typography>
8281
);
8382
})}
84-
</Box>
83+
</span>
8584
);
8685
}
8786

src/components/Page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect } from 'react';
22
import { useSnackbar } from 'notistack';
3-
import { Paper, Typography } from '@mui/material';
3+
import { Paper } from '@mui/material';
44
import Grid from '@mui/material/Grid';
55
import Breadcrumbs from './Breadcrumbs.js';
66

src/stories/Page.stories.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import Page from '../components/Page';
2+
3+
export default {
4+
title: 'Page',
5+
component: Page,
6+
tags: ['autodocs'],
7+
argTypes: {
8+
backgroundColor: { control: 'color' }
9+
},
10+
args: {
11+
children: <div />,
12+
navigate: () => {},
13+
location: { pathname: 'a/test/path' },
14+
width: 'l',
15+
requestErrors: [],
16+
showRequestErrors: false,
17+
homeUrl: null,
18+
showBreadcrumbs: true,
19+
title: null,
20+
defaultAppTitle: null
21+
}
22+
};
23+
24+
export const Default = {
25+
args: {
26+
primary: true,
27+
label: 'Page'
28+
}
29+
};

0 commit comments

Comments
 (0)