Skip to content

Commit fcb9b70

Browse files
fix /community broken image
Signed-off-by: saurabhraghuvanshii <saurabhsraghuvanshi@gmail.com>
1 parent 1109984 commit fcb9b70

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
-17.7 KB
Binary file not shown.

src/sections/Blog/Blog-sidebar/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React, { useEffect, useState } from "react";
2-
import { graphql, Link, useStaticQuery } from "gatsby";
2+
import { graphql, Link, useStaticQuery, withPrefix } from "gatsby";
33
import slugify from "../../../utils/slugify";
44

55
import BlogSideBarWrapper from "./blogSidebar.style";
66
import { HiOutlineChevronUp } from "@react-icons/all-files/hi/HiOutlineChevronUp";
77
import { HiOutlineChevronDown } from "@react-icons/all-files/hi/HiOutlineChevronDown";
88
// import { FaSearch } from "@react-icons/all-files/fa/FaSearch";
99

10-
const Discuss = "/images/layer5-discuss-white.webp";
11-
const FiveandFriendsAdventures = "/images/five-and-friends.webp";
10+
const Discuss = withPrefix("/images/layer5-discuss-white.webp");
11+
const FiveandFriendsAdventures = withPrefix("/images/five-and-friends.webp");
1212

1313
const Sidebar = ({ pageContext }) => {
1414
const data = useStaticQuery(graphql`

src/sections/Discuss-Callout/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from "react";
2+
import { withPrefix } from "gatsby";
23
import { Col } from "../../reusecore/Layout";
34
import SectionTitle from "../../reusecore/SectionTitle";
45
import DiscussWrapper from "./discuss.style";
56

6-
const Discuss = "../../assets/images/discuss/layer5-discuss-white.webp";
7+
const Discuss = withPrefix("/images/layer5-discuss-white.webp");
78

89
const DiscussCallout = () => {
910
return (
@@ -46,4 +47,4 @@ const DiscussCallout = () => {
4647
);
4748
};
4849

49-
export default DiscussCallout;
50+
export default DiscussCallout;

0 commit comments

Comments
 (0)