Skip to content

Commit 14565ee

Browse files
committed
fix: remove unnecessary badge properties from menu items
1 parent f05a239 commit 14565ee

3 files changed

Lines changed: 7 additions & 20 deletions

File tree

components/layout/menu.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@
5959
},
6060
{
6161
"name": "FloatLabel",
62-
"to": "/floatlabel",
63-
"badge": "NEW"
62+
"to": "/floatlabel"
6463
},
6564
{
6665
"name": "IconField",
67-
"to": "/iconfield",
68-
"badge": "NEW"
66+
"to": "/iconfield"
6967
},
7068
{
7169
"name": "InputGroup",
@@ -85,8 +83,7 @@
8583
},
8684
{
8785
"name": "InputOtp",
88-
"to": "/inputotp",
89-
"badge": "NEW"
86+
"to": "/inputotp"
9087
},
9188
{
9289
"name": "InputText",
@@ -257,8 +254,7 @@
257254
},
258255
{
259256
"name": "Stepper",
260-
"to": "/stepper",
261-
"badge": "NEW"
257+
"to": "/stepper"
262258
},
263259
{
264260
"name": "TabView",

components/lib/inputotp/InputOtp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export const InputOtp = React.memo(
227227
autoFocus: props?.autoFocus && inputElementIndex === 0,
228228
'aria-label': ariaLabel('otpLabel', { 0: inputElementIndex + 1 }),
229229
'data-index': inputElementIndex,
230-
className: cx('input'),
230+
className: cx('input')
231231
};
232232
const inputElement = props?.inputTemplate ? (
233233
ObjectUtils.getJSXElement(props?.inputTemplate, {

components/lib/megamenu/MegaMenu.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,6 @@ export const MegaMenu = React.memo(
936936

937937
const columnProps = mergeProps(
938938
{
939-
940939
className: cx('column', { category })
941940
},
942941
ptm('column')
@@ -964,11 +963,7 @@ export const MegaMenu = React.memo(
964963
const createColumns = (category) => {
965964
if (category.items) {
966965
return category.items.map((column, index) => {
967-
return (
968-
<React.Fragment key={index}>
969-
{createColumn(category, column, index)}
970-
</React.Fragment>
971-
);
966+
return <React.Fragment key={index}>{createColumn(category, column, index)}</React.Fragment>;
972967
});
973968
}
974969

@@ -1203,11 +1198,7 @@ export const MegaMenu = React.memo(
12031198
return (
12041199
<ul {...menuProps}>
12051200
{processedItems.map((item, index) => {
1206-
return (
1207-
<React.Fragment key={index}>
1208-
{createCategory(item, index, true)}
1209-
</React.Fragment>
1210-
);
1201+
return <React.Fragment key={index}>{createCategory(item, index, true)}</React.Fragment>;
12111202
})}
12121203
</ul>
12131204
);

0 commit comments

Comments
 (0)