Skip to content

Commit

Permalink
Fix broken image (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aibono1225 authored Jun 2, 2023
1 parent 001289d commit cf2842a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions lib/components/menu/desktop-menu/menu-panel/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ import styles from "./index.module.css";
import Dropdown from "./dropdown";

const MenuPanel = ({ item, prefix }) => {

return (
<>
<div className={styles.MenuImg}>
<img
src={item.src}
alt={item.text}
loading="eager"
/>
</div>
{
item.src && (
<div className={styles.MenuImg}>
<img
src={item.src}
alt={item.text}
loading="eager"
/>
</div>
)
}
<Dropdown items={item.children}></Dropdown>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssw.megamenu",
"version": "3.1.2",
"version": "3.1.3",
"files": [
"dist",
"types",
Expand Down

0 comments on commit cf2842a

Please sign in to comment.