Skip to content

Commit e304a10

Browse files
author
Vivek Vishal
authored
update products
1 parent 3900f01 commit e304a10

3 files changed

Lines changed: 64 additions & 2 deletions

File tree

src/sections/General/Navigation/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import CloudIcon from "./utility/CloudIcon.js";
2121
import LogoutIcon from "./utility/LogoutIcon.js";
2222
// import LogoutIcon from "./utility/LogoutIcon.js";
2323
import KanvasIcon from "./utility/KanvasIcon.js";
24+
import Layer5CloudDarkIcon from "./utility/Layer5CloudDarkIcon.svg";
25+
import Layer5CloudLightIcon from "./utility/Layer5CloudLightIcon.svg";
2426

2527
const Navigation = () => {
2628
let data = useStaticQuery(
@@ -128,6 +130,7 @@ const Navigation = () => {
128130
}
129131
}`
130132
);
133+
const { isDark, toggleDark } = useStyledDarkMode();
131134
data["Products"] = {
132135
nodes: [
133136
{
@@ -144,7 +147,7 @@ const Navigation = () => {
144147
{
145148
frontmatter: {
146149
thumbnail: {
147-
img: meshery,
150+
img: isDark ? Layer5CloudLightIcon : Layer5CloudDarkIcon,
148151
},
149152
title: "Layer5 Cloud & Catalog",
150153
},
@@ -161,7 +164,6 @@ const Navigation = () => {
161164
const [expand, setExpand] = useState(false);
162165
const [scroll, setScroll] = useState(false);
163166
const [dropDown, setDropDown] = useState(false);
164-
const { isDark, toggleDark } = useStyledDarkMode();
165167
const themeToggler = () => toggleDark();
166168
const [userData, setUserData] = useState(null);
167169
const dropDownRef = useRef();
Lines changed: 30 additions & 0 deletions
Loading
Lines changed: 30 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)