Skip to content

Commit 2d65202

Browse files
chore: add link to end-users guides (#1162)
1 parent aebb267 commit 2d65202

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ REACT_APP_MOONPAY_EXTERNAL_LINK="https://www.moonpay.com/buy"
6969

7070
REACT_APP_MAGIC_API_KEY=
7171
REACT_MOCK_CONVERSION_RATES=false
72+
73+
REACT_APP_GUIDES_URL=https://bosonprotocol.github.io/interface

src/components/footer/routes.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { generatePath } from "react-router-dom";
1111
import { DrCenterRoutes } from "../../lib/routing/drCenterRoutes";
1212
import { UrlParameters } from "../../lib/routing/parameters";
1313
import {
14+
BosonProtocolRoutes,
1415
BosonRoutes,
1516
SellerCenterRoutes,
1617
SocialRoutes
@@ -147,7 +148,7 @@ export const getSellRoutes = ({
147148
const isAccountSeller = roles.some((role) => role === UserRoles.Seller);
148149
const productRoutes: { name: string; url: string }[] = [];
149150
productRoutes.push({
150-
name: "Templates & Guides",
151+
name: "Templates",
151152
url: BosonRoutes.Sell
152153
});
153154
productRoutes.push({
@@ -204,6 +205,11 @@ export const getHelpLinks = ({
204205
{
205206
name: "Email",
206207
email: "info@bosonapp.io"
208+
},
209+
{
210+
name: "Guides",
211+
url: BosonProtocolRoutes.Guides,
212+
absolute: true
207213
}
208214
].filter(isTruthy);
209215
};

src/lib/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ export const CONFIG = {
177177
),
178178
magicLinkKey: process.env.REACT_APP_MAGIC_API_KEY as string,
179179
rpcUrls: getRpcUrls(infuraKey),
180-
widgetsUrl
180+
widgetsUrl,
181+
guidesUrl:
182+
process.env.REACT_APP_GUIDES_URL ||
183+
"https://bosonprotocol.github.io/interface"
181184
} as const;
182185
export type GlobalConfig = typeof CONFIG;
183186
export const lensHandleMaxLength = Math.max(

src/lib/routing/routes.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export const BosonRoutes = addViewModePrefixToPaths(
3636
);
3737

3838
export const BosonProtocolRoutes = {
39-
LearnMore: "https://www.bosonprotocol.io/technology"
39+
LearnMore: "https://www.bosonprotocol.io/technology",
40+
Guides: CONFIG.guidesUrl
4041
};
4142

4243
export const SellerCenterRoutes = {

0 commit comments

Comments
 (0)