Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ REACT_APP_MOONPAY_EXTERNAL_LINK="https://www.moonpay.com/buy"

REACT_APP_MAGIC_API_KEY=
REACT_MOCK_CONVERSION_RATES=false

REACT_APP_GUIDES_URL=https://bosonprotocol.github.io/interface
8 changes: 7 additions & 1 deletion src/components/footer/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { generatePath } from "react-router-dom";
import { DrCenterRoutes } from "../../lib/routing/drCenterRoutes";
import { UrlParameters } from "../../lib/routing/parameters";
import {
BosonProtocolRoutes,
BosonRoutes,
SellerCenterRoutes,
SocialRoutes
Expand Down Expand Up @@ -147,7 +148,7 @@ export const getSellRoutes = ({
const isAccountSeller = roles.some((role) => role === UserRoles.Seller);
const productRoutes: { name: string; url: string }[] = [];
productRoutes.push({
name: "Templates & Guides",
name: "Templates",
url: BosonRoutes.Sell
});
productRoutes.push({
Expand Down Expand Up @@ -204,6 +205,11 @@ export const getHelpLinks = ({
{
name: "Email",
email: "info@bosonapp.io"
},
{
name: "Guides",
url: BosonProtocolRoutes.Guides,
absolute: true
}
].filter(isTruthy);
};
5 changes: 4 additions & 1 deletion src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ export const CONFIG = {
),
magicLinkKey: process.env.REACT_APP_MAGIC_API_KEY as string,
rpcUrls: getRpcUrls(infuraKey),
widgetsUrl
widgetsUrl,
guidesUrl:
process.env.REACT_APP_GUIDES_URL ||
"https://bosonprotocol.github.io/interface"
} as const;
export type GlobalConfig = typeof CONFIG;
export const lensHandleMaxLength = Math.max(
Expand Down
3 changes: 2 additions & 1 deletion src/lib/routing/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export const BosonRoutes = addViewModePrefixToPaths(
);

export const BosonProtocolRoutes = {
LearnMore: "https://www.bosonprotocol.io/technology"
LearnMore: "https://www.bosonprotocol.io/technology",
Guides: CONFIG.guidesUrl
};

export const SellerCenterRoutes = {
Expand Down
Loading