Skip to content

Commit d386082

Browse files
committed
change framents to boxes
1 parent bc8b275 commit d386082

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Changelog
2+
## [31.1.0] - 2025-07-07
3+
- changed some React.Fragments to mui Box components
24
## [31.0.0] - 2025-07-04
35
- resurrect storybook
46
- simplify Navigation notifications prop - now just accepts one 'notifications' list, as opposed to seen and unseen lists. No longer accepts markNotificationSeen function

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.0-alpha.2",
3+
"version": "31.1.0",
44
"private": false,
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",

src/components/Breadcrumbs.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import Typography from '@mui/material/Typography';
33
import Link from '@mui/material/Link';
44
import Box from '@mui/material/Box';
55

6-
console.log('Typography:', Typography);
7-
console.log('Link:', Link);
8-
console.log('Box:', Box);
96
function Breadcrumbs({
107
navigate,
118
rootPathLength = 2,

src/components/Search.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import List from '@mui/material/List';
99
import Box from '@mui/material/Box';
1010
import ListItem from '@mui/material/ListItem';
1111
import Typography from '@mui/material/Typography';
12-
import React, { Fragment, useState } from 'react';
12+
import React, { useState } from 'react';
1313
import Loading from './Loading';
1414
import InputField from './InputField';
1515

@@ -126,10 +126,10 @@ function Search({
126126
return (
127127
<List dense>
128128
{result.map(r => (
129-
<Fragment key={r.id}>
129+
<Box key={r.id}>
130130
{resultItem(r)}
131131
<Divider component="li" />
132-
</Fragment>
132+
</Box>
133133
))}
134134
</List>
135135
);

src/components/SearchPanel.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import React, { useState, Fragment } from 'react';
1+
import React, { useState } from 'react';
22
import Paper from '@mui/material/Paper';
3+
import Box from '@mui/material/Box';
34
import Grid from '@mui/material/Grid';
45
import ListItem from '@mui/material/ListItem';
56
import Typography from '@mui/material/Typography';
@@ -80,7 +81,7 @@ function SearchPanel({ menu, close }) {
8081
e.href.toLowerCase().includes(searchTerm.toLowerCase())
8182
)
8283
.map(entry => (
83-
<Fragment key={entry.href}>
84+
<Box key={entry.href}>
8485
<a href={entry.href} style={{ textDecoration: 'none' }}>
8586
<ListItem
8687
sx={{
@@ -98,7 +99,7 @@ function SearchPanel({ menu, close }) {
9899
</Typography>
99100
</ListItem>
100101
</a>
101-
</Fragment>
102+
</Box>
102103
))}
103104
</List>
104105
</Grid>

src/components/SelectedItemsList.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import React, { Fragment } from 'react';
1+
import React from 'react';
22
import List from '@mui/material/List';
3+
import Box from '@mui/material/List';
34
import ListItem from '@mui/material/ListItem';
45
import Typography from '@mui/material/Typography';
56
import ListItemText from '@mui/material/ListItemText';
@@ -33,7 +34,7 @@ function SelectedItemsList({
3334
}}
3435
>
3536
{items.map(item => (
36-
<Fragment key={item.id ? item.id : item}>
37+
<Box key={item.id ? item.id : item}>
3738
<ListItem
3839
sx={{
3940
display: 'flex',
@@ -57,7 +58,7 @@ function SelectedItemsList({
5758
)}
5859
</ListItem>
5960
<Divider />
60-
</Fragment>
61+
</Box>
6162
))}
6263
</List>
6364
</>

0 commit comments

Comments
 (0)